Browse Source
Remove prohibited permissions from definitions
pull/24283/head
maliming
10 months ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
1 changed files with
1 additions and
0 deletions
-
framework/src/Volo.Abp.Authorization/Volo/Abp/Authorization/Permissions/PermissionChecker.cs
|
|
@ -161,6 +161,7 @@ public class PermissionChecker : IPermissionChecker, ITransientDependency |
|
|
} |
|
|
} |
|
|
case PermissionGrantResult.Prohibited: |
|
|
case PermissionGrantResult.Prohibited: |
|
|
result.Result[grantResult.Key] = PermissionGrantResult.Prohibited; |
|
|
result.Result[grantResult.Key] = PermissionGrantResult.Prohibited; |
|
|
|
|
|
permissionDefinitions.RemoveAll(x => x.Name == grantResult.Key); |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|