|
|
@ -185,8 +185,6 @@ public class AbpApplicationConfigurationAppService : ApplicationService, IAbpApp |
|
|
|
|
|
|
|
|
foreach (var policyName in otherPolicyNames) |
|
|
foreach (var policyName in otherPolicyNames) |
|
|
{ |
|
|
{ |
|
|
authConfig.Policies[policyName] = true; |
|
|
|
|
|
|
|
|
|
|
|
if (await _authorizationService.IsGrantedAsync(policyName)) |
|
|
if (await _authorizationService.IsGrantedAsync(policyName)) |
|
|
{ |
|
|
{ |
|
|
authConfig.GrantedPolicies[policyName] = true; |
|
|
authConfig.GrantedPolicies[policyName] = true; |
|
|
@ -196,7 +194,6 @@ public class AbpApplicationConfigurationAppService : ApplicationService, IAbpApp |
|
|
var result = await _permissionChecker.IsGrantedAsync(abpPolicyNames.ToArray()); |
|
|
var result = await _permissionChecker.IsGrantedAsync(abpPolicyNames.ToArray()); |
|
|
foreach (var (key, value) in result.Result) |
|
|
foreach (var (key, value) in result.Result) |
|
|
{ |
|
|
{ |
|
|
authConfig.Policies[key] = true; |
|
|
|
|
|
if (value == PermissionGrantResult.Granted) |
|
|
if (value == PermissionGrantResult.Granted) |
|
|
{ |
|
|
{ |
|
|
authConfig.GrantedPolicies[key] = true; |
|
|
authConfig.GrantedPolicies[key] = true; |
|
|
@ -228,10 +225,10 @@ public class AbpApplicationConfigurationAppService : ApplicationService, IAbpApp |
|
|
foreach (var resourceName in resourceNames) |
|
|
foreach (var resourceName in resourceNames) |
|
|
{ |
|
|
{ |
|
|
var dictionary = new Dictionary<string, string>(); |
|
|
var dictionary = new Dictionary<string, string>(); |
|
|
|
|
|
|
|
|
var localizer = await StringLocalizerFactory |
|
|
var localizer = await StringLocalizerFactory |
|
|
.CreateByResourceNameOrNullAsync(resourceName); |
|
|
.CreateByResourceNameOrNullAsync(resourceName); |
|
|
|
|
|
|
|
|
if (localizer != null) |
|
|
if (localizer != null) |
|
|
{ |
|
|
{ |
|
|
foreach (var localizedString in await localizer.GetAllStringsAsync()) |
|
|
foreach (var localizedString in await localizer.GetAllStringsAsync()) |
|
|
|