feat: allow verwalter role to act as admin in wizard
This commit is contained in:
@@ -39,7 +39,7 @@ export default async function OrderSuccessPage({
|
||||
if (error || !order) redirect('/')
|
||||
|
||||
// Berechtigung prüfen
|
||||
const isAdmin = dbUser?.role === 'admin'
|
||||
const isAdmin = dbUser?.role === 'admin' || dbUser?.role === 'verwaltung'
|
||||
const isOwner = order.user_id === user.id
|
||||
const isCompanyMember = dbUser?.company_id && order.company_id === dbUser.company_id
|
||||
|
||||
|
||||
Reference in New Issue
Block a user