Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

where to store permission property #2528


User avatar
0
lcyhjx created

The permission entity in code has following property: Name, Display name, Description, MultiTenancySides and featureDependency. But in the AbpPermissions data tabble, it just has a name field. Where are the Display name and Description (localization key) stored in?


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

    Hi,

    Permission's are not defined in database. The DisplayName field is here <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp/Authorization/Permission.cs#L32">https://github.com/aspnetboilerplate/as ... ion.cs#L32</a>.

    You can check this document for how to define permissions. <a class="postlink" href="http://aspnetboilerplate.com/Pages/Documents/Authorization#DocDefinePermission">http://aspnetboilerplate.com/Pages/Docu ... Permission</a>

  • User Avatar
    0
    lcyhjx created

    Thanks so much! And then my understand is: 1 The permissions will created at each module initialization. 2 The created permissions are stored in memory – a dictionary 3 When get all permissions or check permission, the permission data is come from memory – dictionary 4 The AbpPermission data table is for roe-permission relationship Am I right? Please correct me if I am wrong

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    You are right. One more addition: AbpPermission table can store user specific permissions as well.