mirror of
https://github.com/bitwarden/server.git
synced 2025-07-21 01:21:42 -05:00
Fix possible null reference
This commit is contained in:
@ -37,7 +37,7 @@ public class OrganizationRequirementHandler(
|
|||||||
throw new InvalidOperationException(NoUserIdError);
|
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);
|
var authorized = await requirement.AuthorizeAsync(organizationClaims, IsProviderUserForOrg);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user