We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7462dc commit 15731e1Copy full SHA for 15731e1
src/Core.Application/Pipelines/Authorization/AuthorizationBehavior.cs
@@ -33,7 +33,7 @@ CancellationToken cancellationToken
33
.FirstOrDefault(userRoleClaim =>
34
userRoleClaim == GeneralOperationClaims.Admin || request.Roles.Contains(userRoleClaim)
35
)
36
- .IsNullOrEmpty();
+ == null;
37
if (isNotMatchedAUserRoleClaimWithRequestRoles)
38
throw new AuthorizationException("You are not authorized.");
39
}
0 commit comments