Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmccannon committed Oct 31, 2024
1 parent ccdb29c commit 3ae2399
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ private async Task<bool> CanReadAllAsync(OrganizationScope organizationScope) =>
|| await currentContext.ProviderUserForOrgAsync(organizationScope);

private async Task<bool> CanViewGroupDetailsAsync(OrganizationScope organizationScope) =>
currentContext.GetOrganization(organizationScope) is
{ Type: OrganizationUserType.Owner } or
{ Type: OrganizationUserType.Admin } or
{ Permissions: { ManageGroups: true } or { ManageUsers: true } }
|| await currentContext.ProviderUserForOrgAsync(organizationScope);
currentContext.GetOrganization(organizationScope) is { Type: OrganizationUserType.Owner } or { Type: OrganizationUserType.Admin }
or { Permissions: { ManageGroups: true } or { ManageUsers: true } }
|| await currentContext.ProviderUserForOrgAsync(organizationScope);
}

0 comments on commit 3ae2399

Please sign in to comment.