Base solution for your next web application
Open Closed

Required permissions are not granted. At least one of these #5333


User avatar
0
jehadk created

Display below error when trying to access to the App layer
Required permissions are not granted. At least one of these permissions must be granted: Tenants
I Disabled the below flage
public const bool MultiTenancyEnabled = false;

//and create below permission
public class AppPageNames
{
public static class Tenant
{
public const string UnderWriting = "UnderWriting";
}
}

//and create AppPermissions UnderWriting
public static class AppPermissions
{
public const string Pages_Tenant_UnderWriting = "Pages.Tenant.UnderWriting";
}
//and create
var UnderWriteing = pages.CreateChildPermission(AppPermissions.Pages_Tenant_UnderWriting, L("UnderWriting"), multiTenancySides: MultiTenancySides.Tenant);

// add below to the xxxxnAppService
[AbpAuthorize(AppPermissions.Pages_Tenant_UnderWriting)]
1212.PNG


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

    Please check if the currently accessed user is granted permission.

  • User Avatar
    0
    jehadk created

    <cite>maliming: </cite>
    Please check if the currently accessed user is granted permission.

    I am login as admin user
    see the attachment
    2.PNG
    3.PNG
    4.PNG

  • User Avatar
    0
    jehadk created

    <cite>maliming: </cite>
    Please check if the currently accessed user is granted permission.

    Can you please check that I sent screenshot to you

  • User Avatar
    0
    maliming created
    Support Team

    If you can reproduce this problem, please send me a copy of the project to see the screenshot is not very intuitive.

    Email:liming.ma@volosoft.com