diff --git a/apps/adminConsole/package.json b/apps/adminConsole/package.json index 9eb4ea5..52f1930 100644 --- a/apps/adminConsole/package.json +++ b/apps/adminConsole/package.json @@ -1,6 +1,6 @@ { "name": "@apps/admin_console", - "version": "0.3.10", + "version": "0.3.11", "description": "Control Hub", "productName": "Control Hub", "private": true, diff --git a/apps/adminConsole/src/stores/AppDetail.ts b/apps/adminConsole/src/stores/AppDetail.ts index 8c4a78a..e425a36 100644 --- a/apps/adminConsole/src/stores/AppDetail.ts +++ b/apps/adminConsole/src/stores/AppDetail.ts @@ -41,7 +41,9 @@ export const useAppDetailStore = defineStore('appDetail', { this.data = data; }, hasPermission(value: string) { - return value.includes(this.data.user.username); + return this.isAdmin + ? value.includes(this.data.user.username) || value.includes('system') + : value.includes(this.data.user.username); } } });