diff --git a/src/views/acl/CommandAcl/index.vue b/src/views/acl/CommandAcl/index.vue index 9b290d8a9..1f968f395 100644 --- a/src/views/acl/CommandAcl/index.vue +++ b/src/views/acl/CommandAcl/index.vue @@ -22,11 +22,13 @@ export default { { title: this.$t('acl.CommandFilterACL'), name: 'CommandFilterACL', + hidden: !this.$hasPerm('acls.view_commandfilteracl'), component: () => import('@/views/acl/CommandAcl/CommandFilterAcl/CommandFilterAclList.vue') }, { title: this.$t('acl.CommandGroup'), name: 'CommandGroup', + hidden: !this.$hasPerm('acls.view_commandgroup'), component: () => import('@/views/acl/CommandAcl/CommandGroup/CommandGroupList.vue') } ] diff --git a/src/views/profile/TempPassword.vue b/src/views/profile/TempPassword.vue index 3a196d3c5..26db3664a 100644 --- a/src/views/profile/TempPassword.vue +++ b/src/views/profile/TempPassword.vue @@ -73,7 +73,7 @@ export default { name: this.$t('setting.Create'), title: this.$t('setting.Create'), type: 'primary', - can: true, + can: this.$hasPerm('authentication.add_temptoken'), callback: function() { this.$axios.post( `/api/v1/authentication/temp-tokens/` diff --git a/src/views/users/Role/RoleDetail/RoleInfo.vue b/src/views/users/Role/RoleDetail/RoleInfo.vue index 212a84eed..6c2111030 100644 --- a/src/views/users/Role/RoleDetail/RoleInfo.vue +++ b/src/views/users/Role/RoleDetail/RoleInfo.vue @@ -96,9 +96,10 @@ export default { ], 'acls.loginacl': ['users.view_user'], 'acls.loginassetacl': ['users.view_user'], + 'acls.commandfilteracl': ['users.view_user'], 'assets.view_asset': ['assets.view_node', 'assets.view_platform'], 'assets.view_node': ['assets.view_asset', 'assets.view_platform'], - 'assets.commandfilterrule': ['assets.view_commandfilter'], + 'acls.commandgroup': ['acls.view_commandfilteracl'], 'assets.gateway': ['assets.view_domain'], 'assets.add_gateway': ['assets.view_domain', 'assets.view_platform', 'assets.view_node'], 'assets.change_gateway': ['assets.view_domain', 'assets.view_platform', 'assets.view_node'],