Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions drizzle/0024_audit_read_permission.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- The backend's central audit log records every change made across PoliNetwork, and the admin
-- dashboard shows it to whoever holds `audit:read`. Like the rest of the migration catalog it is
-- an ordinary permission: no role is given it, and Master Admin covers it through its wildcard.
-- A permission an administrator already created by hand is left untouched.
INSERT INTO "permission" ("id", "key", "name", "description", "managed") VALUES
('migration-permission-audit-read', 'audit:read', 'Read the audit log', 'See every change made across PoliNetwork in the admin dashboard: who made it, on what, and the state before and after.', false)
ON CONFLICT ("key") DO NOTHING;
Loading
Loading