mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
This commit is contained in:
parent
501fefc2d2
commit
062a843ca2
@ -40,7 +40,7 @@
|
||||
</a>
|
||||
</li>
|
||||
{{else}}
|
||||
{{#if permissions.addDevice}}
|
||||
{{#if permissions.enroll}}
|
||||
<li>
|
||||
<a href="{{@app.context}}/device/enroll" class="cu-btn">
|
||||
<span class="icon fw-stack">
|
||||
|
||||
@ -26,10 +26,11 @@ function onRequest(context) {
|
||||
page.groupName = groupName;
|
||||
}
|
||||
page.title =title;
|
||||
page.permissions = {};
|
||||
var currentUser = session.get(constants.USER_SESSION_KEY);
|
||||
if (currentUser) {
|
||||
if (userModule.isAuthorized("/permission/admin/device-mgt/admin/devices/add")) {
|
||||
page.addDevice = true;
|
||||
page.permissions.enroll = true;
|
||||
}
|
||||
}
|
||||
return page;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user