Unveränderter Stand von certvia/dev (a48c5fb) plus Craftvia-Spezifikation und Brandbook unter docs/craftvia/. ISMS-Module werden im Folgecommit entfernt. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
10 lines
375 B
SQL
10 lines
375 B
SQL
-- RLS-Policies für die Maßnahmen-Tabellen
|
|
|
|
ALTER TABLE "measures" ENABLE ROW LEVEL SECURITY;
|
|
ALTER TABLE "risk_measures" ENABLE ROW LEVEL SECURITY;
|
|
|
|
CREATE POLICY tenant_isolation ON "measures"
|
|
USING ("tenant_id" = current_setting('app.tenant_id', true));
|
|
CREATE POLICY tenant_isolation ON "risk_measures"
|
|
USING ("tenant_id" = current_setting('app.tenant_id', true));
|