Base solution for your next web application
Open Closed

Localization of Required Permissions Dialog #485


User avatar
0
byteplatz created

Hello

How can I localize the dialog that appears when the user does not have access to a certain AppService (marked with AbpAuthorize)

Currently the message is in english :

Required permissions are not granted. At least one of these permissions must be granted: (image attached)

And I didn't find this string on language resources

Thank you very much

Bruno Bertechini


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

    Hi,

    I will check it and inform you.

    Thanks.

  • User Avatar
    0
    hikalkan created
    Support Team

    Hi,

    Actually, this exception should not be seen by user. As a best practice; you should always check permissions on client side. If user has no permission for a specific action, User Interface should not allow it. For example, if use has no permission to see a page, it should not be on the menu. Or, if user has no permission to export a report to excel, 'export' button should not be visible. This is better for user experience. That's why we did not consider to make this exception localizable: user should not see it.

    But, OK, then I decided to implement it since you may be missed UI checking. So, follow the issue, it will be resolved soon: <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/393">https://github.com/aspnetboilerplate/as ... issues/393</a>

  • User Avatar
    0
    byteplatz created

    Thanks for the reply.

    I understand and I agree with you on cliente side/menu approach.

    I was just wondering if this is by design or something missing.

    I ask because I am following documentation and testing/understanding between each and every step...

    Thanks a lot

    Bruno