Skip to content

Commit dad8b15

Browse files
Fix authorization core issue
1 parent ab83ef8 commit dad8b15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dotnet/AuthorizationEngine/Services/AuthorizationCore.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,8 @@ private ResourcePathAuthorizationResult ProcessAuthorizationRequestForResourcePa
388388
// Check if the actions of the role definition include the requested action.
389389
if (resourcePath.IncludesResourcePath(roleAssignment.ScopeResourcePath!))
390390
{
391-
result.HasRequiredRole =
392-
roleAssignment.RoleDefinition!.Name == authorizationRequest.RoleName;
391+
if (roleAssignment.RoleDefinition!.Name == authorizationRequest.RoleName)
392+
result.HasRequiredRole = true;
393393

394394
if (roleAssignment.AllowedActions.Contains(authorizationRequest.Action))
395395
{

0 commit comments

Comments
 (0)