Skip to content

Commit

Permalink
feat: clone entities
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Nov 17, 2022
1 parent 2441a79 commit 87bafa8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ public static void AddIdentityServerPolicies(this AuthorizationOptions options,
.RequireClaim(JwtClaimTypes.Scope, SharedConstants.TOKENSCOPES));
if (showSettings)
{
AddSettingsPolicies(options, checkAdminsScope);
AddSettingsPolicies(options, checkAdminsScope, showSettings);
}
}

private static void AddSettingsPolicies(AuthorizationOptions options, bool checkAdminsScope)
private static void AddSettingsPolicies(AuthorizationOptions options, bool checkAdminsScope, bool showSettings)
{
options.AddPolicy(SharedConstants.DYNAMIC_CONFIGURATION_WRITTER_POLICY, policy =>
policy.RequireAssertion(context => context.User.Identity.IsAuthenticated &&
Expand Down

0 comments on commit 87bafa8

Please sign in to comment.