We would like to use the route
{ path: 'hostDashboard', component: HostDashboardComponent, data: { permission: 'Pages.Administration.Host.Dashboard' } },
and see that its controled via - Pages.Administration.Host.Dashboard'
We traced this back to
AppSettingProvider.cs line 88
administration.CreateChildPermission(AppPermissions.Pages_Administration_Host_Dashboard, L("Dashboard"), multiTenancySides: MultiTenancySides.Host);
Question: Where/how is this permission enabled at runtime? Question: Where/how is this permission enabled at build time?
8 Answer(s)
-
0
When you simply remove the
data: { permission: 'Pages.Administration.Host.Dashboard' }
From the route, you get a dialog that warns
Requrired permissions are not granted. At least one of these permissions must be grated: Dashboard
The permissions "Dashboard" is enabled in the admins permissions.
-
0
This is the permission check. https://aspnetboilerplate.com/Pages/Documents/Authorization
-
0
Please do me a favor, put some time into answering the questions, or dont answer with some bullshit resonse.
I read that page 10 times, its says nothing about the issues.
I never see the permission Pages.Administration.Host.Dashboard being set anywhere in the source.
Where exactly would i set it.
I paid $2500 a year for this product, i want real support.
-
0
Sorry, Please forgive me. I was careless.
The admin user you are logged in to is a tenant or a Host?
-
0
Thank you for your response.
We are using the site as with a single tenant, so i assume that means "a host"
-
0
Pages.Administration.Host.Dashboard is a host permission.
Pages.Tenant.Dashboard is a tenant permission.
If you disable the multi-tenancy feature, or log in to the tenant administrator in a multi-tenant, you will not be able to grant Host-specific permissions.
-
0
We have disabled multi-teancy, and logged in as admin.
So your saying that this route "host-dashboard" is not avaiable to us? Should we just use the route "dashboard"?
Its possible that the normal "dashboard" page was canabalized so we might need to restore it from a clean template.
-
0
So your saying that this route "host-dashboard" is not avaiable to us? Should we just use the route "dashboard"?
Yes, the tenant administrator should use the tenant's dashboard.