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
404 B
SQL
10 lines
404 B
SQL
-- RLS-Policies für die Risiko-Tabellen (analog zu den vorherigen RLS-Migrationen)
|
|
|
|
ALTER TABLE "risks" ENABLE ROW LEVEL SECURITY;
|
|
ALTER TABLE "risk_assets" ENABLE ROW LEVEL SECURITY;
|
|
|
|
CREATE POLICY tenant_isolation ON "risks"
|
|
USING ("tenant_id" = current_setting('app.tenant_id', true));
|
|
CREATE POLICY tenant_isolation ON "risk_assets"
|
|
USING ("tenant_id" = current_setting('app.tenant_id', true));
|