#44 feat: restringir acceso a compras para usuarios con rol publico

This commit is contained in:
2026-06-22 12:50:14 -05:00
parent 762fde2cd0
commit 4b006aaa01
3 changed files with 13 additions and 2 deletions

View File

@@ -6,6 +6,7 @@ export const useAuthStore = defineStore('auth', {
}),
getters: {
isAdmin: (state) => state.user?.role === 'administrator',
isPublico: (state) => state.user?.role === 'publico',
isAuthenticated: (state) => !!state.user
},
actions: {