change: move version display to
This commit is contained in:
parent
4a5aec36dd
commit
117372af39
5 changed files with 49 additions and 51 deletions
|
@ -43,6 +43,11 @@ export const useAbilityStore = defineStore("ability", {
|
|||
return true;
|
||||
return false;
|
||||
},
|
||||
isAdmin: (state) => (): boolean => {
|
||||
const permissions = state.permissions;
|
||||
if (state.isOwner) return true;
|
||||
return permissions?.admin ?? false;
|
||||
},
|
||||
_can:
|
||||
() =>
|
||||
(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue