Adding UI permissions for topics view

revert-70aa11f8
Supun94 8 years ago
parent 0551598988
commit 8ca85f1177

@ -64,6 +64,7 @@
"scopes": [
"perm:sign-csr",
"perm:admin:devices:view",
"perm:admin:topics:view",
"perm:roles:add",
"perm:roles:add-users",
"perm:roles:update",

@ -615,6 +615,9 @@ var userModule = function () {
if (publicMethods.isAuthorized("/permission/admin/device-mgt")) {
permissions["IS_ADMIN"] = true;
}
if (publicMethods.isAuthorized("/permission/admin/device-mgt/topics/view")) {
permissions["VIEW_TOPICS"] = true;
}
return permissions;
};

Loading…
Cancel
Save