Browse Source
Fix condition check in ResourcePermissionManager to ensure provider match before returning
pull/24531/head
maliming
5 months ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
1 changed files with
1 additions and
1 deletions
-
modules/permission-management/src/Volo.Abp.PermissionManagement.Domain/Volo/Abp/PermissionManagement/ResourcePermissionManager.cs
|
|
@ -270,7 +270,7 @@ public class ResourcePermissionManager : IResourcePermissionManager, ISingletonD |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
var currentGrantInfo = await GetInternalAsync(permission, resourceName, resourceKey, providerName, providerKey); |
|
|
var currentGrantInfo = await GetInternalAsync(permission, resourceName, resourceKey, providerName, providerKey); |
|
|
if (currentGrantInfo.IsGranted == isGranted) |
|
|
if (currentGrantInfo.IsGranted == isGranted && currentGrantInfo.Providers.Any(x => x.Name == providerName && x.Key == providerKey)) |
|
|
{ |
|
|
{ |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|