0
mert.kir created
All permissions are active when the DbMigrator project is running
- ABP Framework version: v5.2.2
- UI type: Angular
- DB provider: EF Core
- Tiered (MVC) or Identity Server Separated (Angular): yes
- Steps to reproduce the issue:
- Login to the application with one tenant.
- Go to Administration => Identity Management => Roles page.
- Some of the permissions of the admin role are removed.
- Then the DbMigrator project is run.
- When the permissions are looked again after the project is run, it is seen that all permissions are active.
With the DbMigrator project running, the permissions should remain as they are instead of being active again. How can I solve this problem?
1 Answer(s)
-
0
hi
This is by design. but you can override this service to custom the logic
https://github.com/abpframework/abp/blob/dev/modules/permission-management/src/Volo.Abp.PermissionManagement.Domain/Volo/Abp/PermissionManagement/PermissionDataSeedContributor.cs#L10 https://docs.abp.io/en/abp/latest/Customizing-Application-Modules-Overriding-Services#customizing-the-application-modules-overriding-services