Add debug logging for role-based contact data visibility
This commit is contained in:
@@ -332,7 +332,10 @@ const canEdit = computed(() => {
|
||||
})
|
||||
|
||||
const canViewContactData = computed(() => {
|
||||
return authStore.role === 'vorstand'
|
||||
// Explicitly check for 'vorstand' role only
|
||||
const role = authStore.role
|
||||
console.log('Current role:', role, 'Can view contact:', role === 'vorstand')
|
||||
return role === 'vorstand'
|
||||
})
|
||||
|
||||
const loadMembers = async () => {
|
||||
|
||||
Reference in New Issue
Block a user