feat: allow verwalter role to act as admin in wizard

This commit is contained in:
DanielS
2026-08-11 00:35:55 +02:00
parent 73e046e959
commit 407484f69d
8 changed files with 17 additions and 17 deletions

View File

@@ -41,7 +41,7 @@ export async function signIn(email: string, password: string) {
const { data: admins } = await adminClient
.from('users')
.select('email')
.eq('role', 'admin')
.in('role', ['admin', 'verwaltung'])
if (admins && admins.length > 0) {
const adminEmails = admins.map(a => a.email).filter(Boolean)