Browse Source
Fix KeyValuePair deconstruction for netstandard2.0 compatibility
pull/25231/head
maliming
6 months ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
2 changed files with
6 additions and
6 deletions
-
framework/src/Volo.Abp.Authorization/Volo/Abp/Authorization/Permissions/PermissionChecker.cs
-
framework/src/Volo.Abp.Authorization/Volo/Abp/Authorization/Permissions/Resources/ResourcePermissionChecker.cs
|
|
|
@ -138,11 +138,11 @@ public class PermissionChecker : IPermissionChecker, ITransientDependency |
|
|
|
if (pendingStateCheck.Count > 0) |
|
|
|
{ |
|
|
|
var stateCheckResult = await StateCheckerManager.IsEnabledAsync(pendingStateCheck.ToArray()); |
|
|
|
foreach (var (perm, enabled) in stateCheckResult) |
|
|
|
foreach (var item in stateCheckResult) |
|
|
|
{ |
|
|
|
if (enabled) |
|
|
|
if (item.Value) |
|
|
|
{ |
|
|
|
permissionDefinitions.Add(perm); |
|
|
|
permissionDefinitions.Add(item.Key); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -144,11 +144,11 @@ public class ResourcePermissionChecker : IResourcePermissionChecker, ITransientD |
|
|
|
if (pendingStateCheck.Count > 0) |
|
|
|
{ |
|
|
|
var stateCheckResult = await StateCheckerManager.IsEnabledAsync(pendingStateCheck.ToArray()); |
|
|
|
foreach (var (perm, enabled) in stateCheckResult) |
|
|
|
foreach (var item in stateCheckResult) |
|
|
|
{ |
|
|
|
if (enabled) |
|
|
|
if (item.Value) |
|
|
|
{ |
|
|
|
permissionDefinitions.Add(perm); |
|
|
|
permissionDefinitions.Add(item.Key); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|