parent
554d5a1acb
commit
77eb089e2a
@ -1,12 +0,0 @@
|
|||||||
<%
|
|
||||||
var userModule = require("/modules/user.js").userModule;
|
|
||||||
userModule.addPermissions([{key: "device-mgt/", name: "Device Management"}], "");
|
|
||||||
userModule.addPermissions([{key: "device-mgt/admin", name: "Device Management Admin"}], "");
|
|
||||||
userModule.addPermissions([{key: "device-mgt/user", name: "Device Management User"}], "");
|
|
||||||
|
|
||||||
userModule.addPermissions([{key: "devices", name: "Device"}], "device-mgt/admin");
|
|
||||||
userModule.addPermissions([{key: "devices", name: "Device"}], "device-mgt/user");
|
|
||||||
userModule.addPermissions([{key: "devices/list", name: "List all Devices"}], "device-mgt/admin");
|
|
||||||
userModule.addPermissions([{key: "devices/list", name: "List own Devices"}], "device-mgt/user");
|
|
||||||
new Log().info(userModule.isAuthorized("/permission/device-mgt/admin/devices/list"));
|
|
||||||
%>
|
|
@ -1,4 +0,0 @@
|
|||||||
<%
|
|
||||||
var apiWrapperUtil = require("/modules/api-wrapper-util.js").apiWrapperUtil;
|
|
||||||
apiWrapperUtil.refreshToken();
|
|
||||||
%>
|
|
Loading…
Reference in new issue