Update dependencies to include TinyMCE and Quill, enhance Navigation component with a new Newsletter submenu, and implement role-based access control for CMS features. Refactor user role handling to support multiple roles and improve user management functionality across various API endpoints.
This commit is contained in:
@@ -250,7 +250,10 @@ const uploadForm = ref({
|
||||
})
|
||||
|
||||
const isAdmin = computed(() => authStore.isAdmin)
|
||||
const isVorstand = computed(() => authStore.user?.role === 'vorstand')
|
||||
const isVorstand = computed(() => {
|
||||
const roles = authStore.user?.roles || (authStore.user?.role ? [authStore.user.role] : [])
|
||||
return roles.includes('vorstand')
|
||||
})
|
||||
|
||||
useHead({
|
||||
title: 'Galerie - Harheimer TC',
|
||||
|
||||
Reference in New Issue
Block a user