Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

How to enable the angular permission 'Pages.Administration.Host.Dashboard' #6919


User avatar
0
commondesk created

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)
  • User Avatar
    0
    commondesk created

    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.

  • User Avatar
    0
    maliming created
    Support Team

    This is the permission check. https://aspnetboilerplate.com/Pages/Documents/Authorization

  • User Avatar
    0
    commondesk created

    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.

  • User Avatar
    0
    maliming created
    Support Team

    Sorry, Please forgive me. I was careless.

    The admin user you are logged in to is a tenant or a Host?

  • User Avatar
    0
    commondesk created

    Thank you for your response.

    We are using the site as with a single tenant, so i assume that means "a host"

  • User Avatar
    0
    maliming created
    Support Team

    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.

  • User Avatar
    0
    commondesk created

    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.

  • User Avatar
    0
    maliming created
    Support Team

    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.