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

What is the usage for "Pages" namespace prefix of Permission definition in ZERO? #7481


User avatar
0
trendline created

Hi guys, I am little confuses about the permissoin definition with "Pages" prefix, such as "Pages_Administration_Roles_Create", instead of it with "Administration_Roles_Create" will more simple, why add the prefix? Is there a reason to do that?


3 Answer(s)
  • User Avatar
    1
    ryancyq created
    Support Team

    Hi, using Page prefix is to indicate view permission.

    There are some cases where view permissions have to be separated from API permissions.

    also certain view permission might not present at API permission level. e.g. View Dashboard view permission cannot be directly mapped to API, instesd it can be mapped a view controller.

  • User Avatar
    0
    trendline created

    @ryancyq, Thanks for your explaination. In this case should I different the permissions between MVC controllers and API Services, this also will make the permission definitions more complex and let user confuses on permisson management UI, which pattern you recommend?

  • User Avatar
    1
    ryancyq created
    Support Team

    Hi @trendline it depends on your API requirements.

    In general if your API permissions do not differ much from your view permissoon, you can use the same permission.

    However, if you intent to expose the API to third party developer or external application, you can consider using different permission sets