Skip to content

Commit

Permalink
Fix IsAuthorized in GetListAuthorizedAsync is always false bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdlcf88 committed Apr 30, 2020
1 parent bac3c59 commit c23ff74
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common.props
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>0.1.4</Version>
<Version>0.1.5</Version>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>EasyAbp Team</Authors>
Expand Down
Expand Up @@ -94,7 +94,12 @@ public virtual async Task<PagedResultDto<ResourceDto>> GetListAuthorizedAsync(Pa

return new PagedResultDto<ResourceDto>(
totalCount,
resources.Select(MapToGetListOutputDto).ToList()
resources.Select(x =>
{
var dto = ObjectMapper.Map<Resource, ResourceDto>(x);
dto.IsAuthorized = true;
return dto;
}).ToList()
);
}

Expand Down

0 comments on commit c23ff74

Please sign in to comment.