#44 feat: restringir acceso a compras para usuarios con rol publico
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user