Skip to content

Commit 15731e1

Browse files
fix(Core.Application.Pipelines.Authorization): There is no argument given error
1 parent e7462dc commit 15731e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Core.Application/Pipelines/Authorization/AuthorizationBehavior.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ CancellationToken cancellationToken
3333
.FirstOrDefault(userRoleClaim =>
3434
userRoleClaim == GeneralOperationClaims.Admin || request.Roles.Contains(userRoleClaim)
3535
)
36-
.IsNullOrEmpty();
36+
== null;
3737
if (isNotMatchedAUserRoleClaimWithRequestRoles)
3838
throw new AuthorizationException("You are not authorized.");
3939
}

0 commit comments

Comments
 (0)