Add admin page that can edit users
Add admin page that's only accessible to admins with a listing of users and the ability to edit the access types of those users.
This commit is contained in:
parent
3be7f8be05
commit
87525a6ef5
5 changed files with 170 additions and 0 deletions
|
@ -27,6 +27,7 @@ export const useAccountStore = defineStore("account", () => {
|
|||
});
|
||||
|
||||
const getters = {
|
||||
isAdmin: computed(() => state.type.value === "admin"),
|
||||
isCrew: computed(() => state.type.value === "crew" || state.type.value === "admin"),
|
||||
canEdit: computed(() => state.type.value === "admin" || state.type.value === "crew" ),
|
||||
canEditPublic: computed(() => state.type.value === "admin"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue