Skip to content

Commit

Permalink
fix: fix controlhub user terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
yongheng2016 committed Aug 21, 2024
1 parent 7c6bdf2 commit 17aa635
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/adminConsole/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apps/admin_console",
"version": "0.3.10",
"version": "0.3.11",
"description": "Control Hub",
"productName": "Control Hub",
"private": true,
Expand Down
4 changes: 3 additions & 1 deletion apps/adminConsole/src/stores/AppDetail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
});

0 comments on commit 17aa635

Please sign in to comment.