Browse Source
Merge pull request #22526 from abpframework/auto-merge/rel-9-1/3586
Merge branch rel-9.2 with rel-9.1
pull/22527/head
maliming
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
8 additions and
8 deletions
-
modules/permission-management/src/Volo.Abp.PermissionManagement.Domain/Volo/Abp/PermissionManagement/StaticPermissionSaver.cs
|
|
|
@ -141,15 +141,15 @@ public class StaticPermissionSaver : IStaticPermissionSaver, ITransientDependenc |
|
|
|
throw; |
|
|
|
} |
|
|
|
|
|
|
|
await unitOfWork.CompleteAsync(); |
|
|
|
} |
|
|
|
|
|
|
|
if (newOrChangedPermissions.Any()) |
|
|
|
{ |
|
|
|
await DistributedEventBus.PublishAsync(new DynamicPermissionDefinitionsChangedEto |
|
|
|
if (newOrChangedPermissions.Any()) |
|
|
|
{ |
|
|
|
Permissions = newOrChangedPermissions.Distinct().ToList() |
|
|
|
}); |
|
|
|
await DistributedEventBus.PublishAsync(new DynamicPermissionDefinitionsChangedEto |
|
|
|
{ |
|
|
|
Permissions = newOrChangedPermissions.Distinct().ToList() |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
await unitOfWork.CompleteAsync(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|