diff --git a/system-setting/frontend/src/business/system/group/GroupMember.vue b/system-setting/frontend/src/business/system/group/GroupMember.vue index 4b1fc2d84e..201558a630 100644 --- a/system-setting/frontend/src/business/system/group/GroupMember.vue +++ b/system-setting/frontend/src/business/system/group/GroupMember.vue @@ -4,7 +4,7 @@ :destroy-on-close="true" @close="close" v-loading="loading" z-index="1000" class="group-member"> @@ -41,6 +41,8 @@
@@ -121,6 +123,7 @@ import { import {getUserListByResourceUrl} from "../../../api/user"; import {getGroupResource} from "../../../api/workspace"; import {operationConfirm} from "metersphere-frontend/src/utils"; +import {hasPermissions} from "metersphere-frontend/src/utils/permission"; export default { name: "GroupMember", @@ -183,6 +186,9 @@ export default { } }, methods: { + hasPermissions(permission) { + return hasPermissions(permission[0]); + }, init() { this.condition.userGroupId = this.group.id; this.loading = getUserGroupByResourceUrlAndPage(this.initUserGroupUrl, this.currentPage, this.pageSize, this.condition) diff --git a/system-setting/frontend/src/business/system/group/UserGroup.vue b/system-setting/frontend/src/business/system/group/UserGroup.vue index b2bfe9325f..c905d3c944 100644 --- a/system-setting/frontend/src/business/system/group/UserGroup.vue +++ b/system-setting/frontend/src/business/system/group/UserGroup.vue @@ -136,7 +136,7 @@ export default { return USER_GROUP_SCOPE; }, disabledEditGroupMember() { - return !hasPermission('SYSTEM_GROUP:READ+EDIT'); + return !hasPermission('SYSTEM_GROUP:READ'); } }, methods: {