Skip to content

Commit

Permalink
Merge pull request #60 from sia-digital/fix/required_roles
Browse files Browse the repository at this point in the history
fix policy require role
  • Loading branch information
apurkovic authored Oct 15, 2024
2 parents 122e198 + 3b308b4 commit cca75b3
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ public static void AddAuthPolicies(this AuthorizationOptions options, IEnumerabl
{
options.AddPolicy(authPolicy.Name!, builder =>
{
foreach (var authPolicyRole in authPolicy.Roles!)
{
builder.RequireRole(authPolicyRole);
}
builder.RequireRole(authPolicy.Roles!);
});
}
}
Expand Down

0 comments on commit cca75b3

Please sign in to comment.