diff --git a/shell/app/org-home/stores/org.tsx b/shell/app/org-home/stores/org.tsx index 86677b765b..f76ffbfd89 100644 --- a/shell/app/org-home/stores/org.tsx +++ b/shell/app/org-home/stores/org.tsx @@ -106,7 +106,7 @@ const org = createStore({ // req.set('org', currentOrg.name); // } // agent.use(setHeader); - + const orgPermQuery = { scope: 'org', scopeID: `${orgId}` }; (getResourcePermissions(orgPermQuery) as unknown as Promise).then((orgPermRes) => { const orgAccess = get(orgPermRes, 'data.access'); @@ -203,7 +203,7 @@ const setLocationByAuth = (authObj: Obj) => { }, workBench: { isCurPage: curPathname.startsWith(`/${orgName}/workBench`), - authRole: intersection(orgPerm.entryWorkBench.role, roles), + authRole: intersection(orgPerm.workBench.read.role, roles), }, // apiManage: { // isCurPage: curPathname.startsWith('/apiManage'), diff --git a/shell/app/user/stores/_perm-org.ts b/shell/app/user/stores/_perm-org.ts index 223f8fc42b..9291ac3bf7 100644 --- a/shell/app/user/stores/_perm-org.ts +++ b/shell/app/user/stores/_perm-org.ts @@ -109,19 +109,6 @@ export const orgPerm = { 'DataManager', ], }, - entryWorkBench: { - pass: false, - name: '工作台', - role: [ - 'Manager', - 'Dev', - 'Support', - 'DataManager', - 'Reporter', - 'PublisherManager', - 'Guest', - ], - }, entryFastData: { pass: false, name: '快数据平台',