Add debug logging for role-based contact data visibility

This commit is contained in:
Torsten Schulz (local)
2025-10-21 14:44:43 +02:00
parent 37994f39b2
commit d21c96de07
17 changed files with 256 additions and 227 deletions

View File

@@ -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 () => {