Open Closed

Feature system and Permissions #5659


User avatar
0
lszabados@consult2000.hu created

Hello,

I use the Feature system. My problem is the following and I would like some ideas / advice.

Among the permissions, there are some that belong to a function that is controlled by permissions under the Feature system.

How can I hide the privilege choices if the feature is not active?

Best Regards,

L.

  • ABP Framework version: v7.3.0
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

1 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

    You can declare the feature they need when defining permissions.

    For example:

    var myGroup = context.AddGroup("MyGroup", L("Permission:MyGroup"));
    
    var permission = myGroup.AddPermission("Test", L("Permission:Test")).RequireFeatures(.....);
    
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
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.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.