Base solution for your next web application
Open Closed

Hide a permission of a deactivated feature #7361


User avatar
1
ignasiclos created

Hello, We've some permissions that only applies when a feature is activated, and we want them hidden in the edit role popup. It looks like it is not possible out of the box.

Any idea? Thanks


4 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Are you using Angular 8 version or JQuery version ?

  • User Avatar
    0
    ignasiclos created

    Angular 8

  • User Avatar
    0
    alper created
    Support Team

    hi,

    Set FeatureDependency to the permission and it'll not be listed on the permission list. See the code that retrieves permissions

    https://github.com/aspnetboilerplate/aspnetboilerplate/blob/e0ded5d8702f389aa1f5947d3446f16aec845287/src/Abp/Authorization/PermissionManager.cs#L70

  • User Avatar
    0
    ignasiclos created

    It worked perfectly. Thanks!