mirror of
https://github.com/bitwarden/server.git
synced 2025-07-19 08:30:59 -05:00
Fix possible null reference
This commit is contained in:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user