feat: allow verwalter role to act as admin in wizard
This commit is contained in:
@@ -86,7 +86,7 @@ export async function createEndCustomer(formData: EndCustomerFormData, companyId
|
||||
.eq('id', user.id)
|
||||
.single()
|
||||
|
||||
const isAdmin = dbUser?.role === 'admin'
|
||||
const isAdmin = dbUser?.role === 'admin' || dbUser?.role === 'verwaltung'
|
||||
const resolvedCompanyId = dbUser?.company_id || companyId
|
||||
|
||||
if (!isAdmin && !resolvedCompanyId) {
|
||||
|
||||
Reference in New Issue
Block a user