Base solution for your next web application
Open Closed

[At least one of these permissions must be granted] but does not show required permissions in GB #9420


User avatar
0
adamphones created

When we change the language to en-GB we cannot see the required permisisons in the error message.

<text name="AtLeastOneOfThesePermissionsMustBeGranted">Required permissions are not granted. At least one of these permissions must be granted: {0}</text> exists in en-GB.xml file.

Any idea why we do not see the required permissions in the error message?

Thanks,


7 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    hi

    What is Abp package version? What is product framework type (.net framework or .net core)? Can you share steps to reproduce the problem.

  • User Avatar
    0
    adamphones created

    Hi

    apb : v8.6.0.0 angular 9 asp.net core 3.1

    This is an intermittent bug.

    Steps to produce:
    1- Change the language to en-GB from dropddown. (this is are default language). 2- Go to >Administration> Languages> and disable en (United States). Leave only en-GB (United Kingdom) enabled and set United Kingdom as default language. 3- Log out and clear all caches. Clear all cookies. and restart app pool. and re-run ng serve if possbile. (Basically completely clean start) 4-Log back in 5- Remove a page permisison for a user( it doesn't matter which page) 6- Login as that user and try to access the page that the user does not have permission. 7- An error message pops up similar to attached screenshot.

    Problem: The error popup does not display required permissions as it does in en(United States) language.

    Please make sure clear all caches otherwise when you change language from en to en-GB then the error message shows the permisisons fine. The key thing is when en language is disabled a completely clean start then the issue appears.

  • User Avatar
    0
    maliming created
    Support Team

    hi

    We will investigate this issue, similar to https://github.com/aspnetboilerplate/aspnetboilerplate/issues/5701

  • User Avatar
    0
    adamphones created

    Hi @mailiming, Any update on this issue?

  • User Avatar
    0
    maliming created
    Support Team

    hi @adamphones

    I think this problem is related to https://github.com/aspnetboilerplate/aspnetboilerplate/issues/5701

    My colleague is working on this problem.

    You can also check this issue.

  • User Avatar
    0
    adamphones created

    Hi @maliming,

    I know you are working on this but this is causing us trouble. There is no way to figure out what permission is required. I tried to hack you suggested in the ticket(change en to en-GB. Then I disabled all languages but en on the ui. This seems working. But the issue is that when you view the permissions you see brackets around [Permissions] any idea how we can use simple text for the permissions title instead of localizated texts?

  • User Avatar
    0
    ismcagdas created
    Support Team