Open Closed

How to make integration between feature and role #4750


User avatar
0
fadijb created

Hi How to make integration between feature and role

I create new module and added this module as a feature every thing working fine but when I disable feature its still exite inside role

when I open page

I need to hide it from role when disabled from features like other build in features

  • ABP Framework version: v7.0.3
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

1 Answer(s)
  • User Avatar
    0
    salih created
    Support Team .NET Developer

    Hello, would you like to try adding the permissions in your PermissionDefinitionProvider class using the following code: group.AddPermission(MyPermission.Permission, L("Permission:Permission")).RequireFeatures(MyFeature.Enable);?

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11