BEST
DEALS
OF THE
YEAR!
SAVE UP TO $3,000
24 NOV
1 DEC
00 Days
00 Hrs
00 Min
00 Sec
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);?

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on November 20, 2025, 09:12
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.