Adding link for the dashboard in tenant mode

revert-dabc3590
Megala 8 years ago
parent 57e46525f8
commit 6d3fbc422f

@ -75,7 +75,7 @@
</li> </li>
{{/if}} {{/if}}
{{#if permissions.VIEW_DASHBOARD}} {{#if permissions.VIEW_DASHBOARD}}
<li><a href="{{serverURL}}/portal/dashboards/emm-analytics-dashboard/"> <li><a href="{{serverURL}}/portal/t/{{currentUser.domain}}/dashboards/emm-analytics-dashboard/">
<i class="fw fw-pie-chart"></i>Device Management Dashboard</a> <i class="fw fw-pie-chart"></i>Device Management Dashboard</a>
</li> </li>
{{/if}} {{/if}}

@ -59,8 +59,7 @@ function onRequest(context) {
permissions["LIST_NOTIFICATIONS"] = userModule.isAuthorized("/permission/admin/device-mgt/notifications/view"); permissions["LIST_NOTIFICATIONS"] = userModule.isAuthorized("/permission/admin/device-mgt/notifications/view");
// Restricting the dashboard menu only for super-tenant users // Restricting the dashboard menu only for super-tenant users
permissions["VIEW_DASHBOARD"] = userModule.isAuthorized("/permission/admin/device-mgt/dashboard/view") && permissions["VIEW_DASHBOARD"] = userModule.isAuthorized("/permission/admin/device-mgt/dashboard/view");
(viewModel["currentUser"].domain == superTenant.domain);
viewModel["permissions"] = permissions; viewModel["permissions"] = permissions;
viewModel["appContext"] = mdmProps["appContext"]; viewModel["appContext"] = mdmProps["appContext"];

Loading…
Cancel
Save