Add admin page that can edit users
All checks were successful
/ build (push) Successful in 1m30s
/ deploy (push) Successful in 16s

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:
Hornwitser 2025-06-23 00:20:33 +02:00
parent 3be7f8be05
commit 87525a6ef5
5 changed files with 170 additions and 0 deletions

View file

@ -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"),