Browse Source
Publishing `DynamicPermissionDefinitionsChangedEto` in uow.
pull/22511/head
maliming
10 months ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
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(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|