diff --git a/backend/src/database/migrations/084_persoenliche_ausruestung.sql b/backend/src/database/migrations/084_persoenliche_ausruestung.sql index c2cb69f..9b9b6ee 100644 --- a/backend/src/database/migrations/084_persoenliche_ausruestung.sql +++ b/backend/src/database/migrations/084_persoenliche_ausruestung.sql @@ -58,7 +58,7 @@ INSERT INTO permissions (id, feature_group_id, description) VALUES ON CONFLICT DO NOTHING; -- Seed permissions for groups: admin, kommandant, gruppenkommandant, zeugmeister get all; others get view only -INSERT INTO group_permissions (group_name, permission_id) +INSERT INTO group_permissions (authentik_group, permission_id) SELECT g.name, p.id FROM (VALUES ('dashboard_admin'), @@ -71,7 +71,7 @@ WHERE p.feature_group_id = 'persoenliche_ausruestung' ON CONFLICT DO NOTHING; -- All other groups get view only -INSERT INTO group_permissions (group_name, permission_id) +INSERT INTO group_permissions (authentik_group, permission_id) SELECT g.name, 'persoenliche_ausruestung:view' FROM (VALUES ('dashboard_feuerwehrmitglied'),