From 87bafa8b1efd7a93665fa613d9a204408be3ce2f Mon Sep 17 00:00:00 2001 From: github-actions Date: Fri, 11 Nov 2022 16:21:56 +0100 Subject: [PATCH] feat: clone entities #888 --- .../Extensions/AuthorizationOptionsExtensions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BlazorApp/Aguacongas.TheIdServer.BlazorApp.Infrastructure/Extensions/AuthorizationOptionsExtensions.cs b/src/BlazorApp/Aguacongas.TheIdServer.BlazorApp.Infrastructure/Extensions/AuthorizationOptionsExtensions.cs index 090507c13..74b7ff06d 100644 --- a/src/BlazorApp/Aguacongas.TheIdServer.BlazorApp.Infrastructure/Extensions/AuthorizationOptionsExtensions.cs +++ b/src/BlazorApp/Aguacongas.TheIdServer.BlazorApp.Infrastructure/Extensions/AuthorizationOptionsExtensions.cs @@ -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 &&