Skip to content

Commit

Permalink
Not public resource items will be got list by anyone
Browse files Browse the repository at this point in the history
  • Loading branch information
gdlcf88 committed May 10, 2020
1 parent 3ff5bf1 commit bfaaf7e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion common.props
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>0.1.7</Version>
<Version>0.1.8</Version>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>EasyAbp Team</Authors>
Expand Down
Expand Up @@ -90,11 +90,6 @@ public override async Task<PagedResultDto<ResourceItemDto>> GetListAsync(GetReso
if (!currentUserAllowedToManage)
{
query = query.Where(x => x.IsPublished);

if (!await IsCurrentUserAuthorizedToReadAsync(resource.Id))
{
query = query.Where(x => x.IsPublic);
}
}

var totalCount = await AsyncQueryableExecuter.CountAsync(query);
Expand Down

0 comments on commit bfaaf7e

Please sign in to comment.