feat: allow verwalter role to act as admin in wizard
This commit is contained in:
@@ -199,7 +199,7 @@ export async function getCustomersForWizard(
|
||||
.eq('id', user.id)
|
||||
.single()
|
||||
|
||||
const isAdmin = dbUser?.role === 'admin'
|
||||
const isAdmin = dbUser?.role === 'admin' || dbUser?.role === 'verwaltung'
|
||||
|
||||
let client = supabase
|
||||
if (isAdmin) {
|
||||
|
||||
Reference in New Issue
Block a user