Base solution for your next web application
Open Closed

permission not visible in tree view of permission #1796


User avatar
0
huntethan89 created

Hi, i am looking into <a class="postlink" href="https://www.aspnetzero.com/Documents/Developing-Step-By-Step-MPA#authorization-for-phone-book">https://www.aspnetzero.com/Documents/De ... phone-book</a> this link to add authorization for page. i have added same as described in documnet but the permission is not showing in permission tree. what is the possible reason behind this issue.

code added in AppAuthorizationProvider.cs

var phoneBook = pages.CreateChildPermission(AppPermissions.Pages_Tenant_PhoneBook, L("PhoneBook"), multiTenancySides: MultiTenancySides.Tenant); phoneBook.CreateChildPermission(AppPermissions.Pages_Tenant_PhoneBook_CreatePerson, L("CreateNewPerson"), multiTenancySides: MultiTenancySides.Tenant);

In AppPermissions class.cs

public const string Pages_Tenant_PhoneBook = "Pages.Tenant.PhoneBook";

Thanks Himanshu sharma


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Do you login to app as host user or tenant user ?