@ -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;
};