Base solution for your next web application
Open Closed

Show permission only tenancy has feature #1921


User avatar
0
benjamim created

I would like to allow some permissions under tenancies only if the tenancy has a feature. How about the best way to implement it?

For example: Tenancy 'A' has the feature 'Phonebook'. Tenancy 'B' has not the feature 'Phonebook'

So, just the admin of tenancy 'A' is able to see the permission 'Phonebook'

Tks


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

    Hi,

    You can use featureDependency for that. See "dependedFeature" under "Defining Permissions" here <a class="postlink" href="http://aspnetboilerplate.com/Pages/Documents/Authorization">http://aspnetboilerplate.com/Pages/Docu ... horization</a>