feat : creation d'une page d'aministration pour la ajout / modification d'utlisateur

This commit is contained in:
2026-02-09 15:11:15 +01:00
parent 6a892889e3
commit 8d2491ad9e
7 changed files with 33 additions and 21 deletions

View File

@@ -12,7 +12,7 @@ export const useAuthStore = defineStore('auth', {
}),
getters: {
isAuthenticated: (state) => Boolean(state.user),
isAdmin: (state) => Boolean(state.user?.roles?.includes(ROLE.ROLE_ADMIN))
isAdmin: (state) => Boolean(state.user?.roles?.includes(ROLE[0].value))
},
actions: {
clearSession() {