Open Closed

All permissions are active when the DbMigrator project is running #3236


User avatar
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:
  1. Login to the application with one tenant.
  2. Go to Administration => Identity Management => Roles page.
  3. Some of the permissions of the admin role are removed.
  4. Then the DbMigrator project is run.
  5. 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)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    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

Made with ❤️ on ABP v9.1.0-preview. Updated on December 26, 2024, 06:07