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:
@@ -245,7 +245,7 @@ const formData = ref({
|
||||
})
|
||||
|
||||
const canWrite = computed(() => {
|
||||
return authStore.role === 'admin' || authStore.role === 'vorstand'
|
||||
return authStore.hasAnyRole('admin', 'vorstand')
|
||||
})
|
||||
|
||||
const loadNews = async () => {
|
||||
|
||||
Reference in New Issue
Block a user