From 6ee42fbbeab4e900c6ef4b26a3b91035ee33a2fd Mon Sep 17 00:00:00 2001 From: "song.tianyang" Date: Wed, 24 Mar 2021 18:59:15 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E7=A9=BA=E9=97=B4=E6=9D=83=E9=99=90=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复工作空间权限问题 --- .../settings/organization/OrganizationWorkspace.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/frontend/src/business/components/settings/organization/OrganizationWorkspace.vue b/frontend/src/business/components/settings/organization/OrganizationWorkspace.vue index f26c83f681..0230240fe9 100644 --- a/frontend/src/business/components/settings/organization/OrganizationWorkspace.vue +++ b/frontend/src/business/components/settings/organization/OrganizationWorkspace.vue @@ -267,7 +267,14 @@ let lastOrganizationId = this.currentUser.lastOrganizationId; let userRole = this.currentUser.userRoles.filter(r => r.sourceId === lastOrganizationId); if (userRole.length > 0) { - if (userRole[0].roleId === "org_admin") { + let isOrg_admin = false; + userRole.forEach(row=>{ + if(row.roleId === "org_admin" ){ + isOrg_admin = true; + return; + } + }); + if (isOrg_admin) { this.result = this.$post(url, this.condition, response => { let data = response.data; this.items = data.listObject; From d92526ab4e0a8583652b4e9e363ee28e21b865d4 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Wed, 24 Mar 2021 19:06:59 +0800 Subject: [PATCH 2/2] chore: sync --- frontend/src/business/components/xpack | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/business/components/xpack b/frontend/src/business/components/xpack index 07951ba17a..2115bd28a9 160000 --- a/frontend/src/business/components/xpack +++ b/frontend/src/business/components/xpack @@ -1 +1 @@ -Subproject commit 07951ba17aef6f29e50cfd68e40de3266f9a60cd +Subproject commit 2115bd28a90854d2b6276a90878934715498c584