From 1efb25608c82126ed24d05f54f2bd12d3f650a57 Mon Sep 17 00:00:00 2001 From: Thomas Rittson <31796059+eliykat@users.noreply.github.com> Date: Tue, 10 May 2022 16:37:13 +1000 Subject: [PATCH] Fix ManageBilling permission check (#1988) --- src/Core/Context/CurrentContext.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Context/CurrentContext.cs b/src/Core/Context/CurrentContext.cs index 0f943dd69..c34a33530 100644 --- a/src/Core/Context/CurrentContext.cs +++ b/src/Core/Context/CurrentContext.cs @@ -362,7 +362,7 @@ namespace Bit.Core.Context public async Task ManageBilling(Guid orgId) { - var orgManagedByProvider = ProviderIdForOrg(orgId) != null; + var orgManagedByProvider = await ProviderIdForOrg(orgId) != null; return orgManagedByProvider ? await ProviderUserForOrgAsync(orgId)