1
0
mirror of https://github.com/bitwarden/server synced 2025-12-17 08:43:27 +00:00

Resolved an issue where the API required users to be organization owners when accessing the members page (#4534)

This commit is contained in:
Conner Turnbull
2024-07-19 10:24:48 -04:00
committed by GitHub
parent 81477303e3
commit 9b9f202f79
4 changed files with 10 additions and 4 deletions

View File

@@ -383,6 +383,11 @@ public class CurrentContext : ICurrentContext
return await EditSubscription(orgId);
}
public async Task<bool> AccessMembersTab(Guid orgId)
{
return await OrganizationAdmin(orgId) || await ManageUsers(orgId) || await ManageResetPassword(orgId);
}
public bool ProviderProviderAdmin(Guid providerId)
{
return Providers?.Any(o => o.Id == providerId && o.Type == ProviderUserType.ProviderAdmin) ?? false;