mirror of
https://github.com/bitwarden/server.git
synced 2025-04-12 00:28:11 -05:00
Fix possible null reference
This commit is contained in:
parent
34675c3487
commit
60cd7e6353
@ -37,7 +37,7 @@ public class OrganizationRequirementHandler(
|
||||
throw new InvalidOperationException(NoUserIdError);
|
||||
}
|
||||
|
||||
Task<bool> IsProviderUserForOrg() => httpContextAccessor.HttpContext.IsProviderUserForOrgAsync(providerUserRepository, userId.Value, organizationId);
|
||||
Task<bool> IsProviderUserForOrg() => httpContext.IsProviderUserForOrgAsync(providerUserRepository, userId.Value, organizationId);
|
||||
|
||||
var authorized = await requirement.AuthorizeAsync(organizationClaims, IsProviderUserForOrg);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user