1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-25 12:45:18 +01:00

Fix ManageBilling permission check (#1988)

This commit is contained in:
Thomas Rittson 2022-05-10 16:37:13 +10:00 committed by GitHub
parent 227b725514
commit 1efb25608c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -362,7 +362,7 @@ namespace Bit.Core.Context
public async Task<bool> ManageBilling(Guid orgId)
{
var orgManagedByProvider = ProviderIdForOrg(orgId) != null;
var orgManagedByProvider = await ProviderIdForOrg(orgId) != null;
return orgManagedByProvider
? await ProviderUserForOrgAsync(orgId)