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
3 Answer(s)
-
0
Hi,
I will check it and inform you.
Thanks.
-
0
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>
-
0
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