1
0
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:
Thomas Rittson 2025-04-07 11:18:00 +10:00
parent 34675c3487
commit 60cd7e6353
No known key found for this signature in database
GPG Key ID: CDDDA03861C35E27

View File

@ -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);