Adding link for the dashboard in tenant mode

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

@ -75,7 +75,7 @@
</li>
{{/if}}
{{#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>
</li>
{{/if}}

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

Loading…
Cancel
Save