about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2026-03-11 11:20:17 -0500
committerFrederick Muriuki Muriithi2026-03-11 11:20:17 -0500
commit7dc790bc9c6091b03061a3eaebf79f0258bbc12a (patch)
treed615fd434675435519fdd953c34847c7b30ca418
parent77b03164f7ee838e76ec6b565e5cda03f0571bfc (diff)
downloadgn-auth-7dc790bc9c6091b03061a3eaebf79f0258bbc12a.tar.gz
Documention Edit: Add new privilege.
Add a privilege to restrict ability to edit documentation that comes
with the Genenetwork system.
-rw-r--r--migrations/auth/20260311_01_TfRlV-add-privilege-for-gn-docs-documentation-editing.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/migrations/auth/20260311_01_TfRlV-add-privilege-for-gn-docs-documentation-editing.py b/migrations/auth/20260311_01_TfRlV-add-privilege-for-gn-docs-documentation-editing.py
new file mode 100644
index 0000000..552fd01
--- /dev/null
+++ b/migrations/auth/20260311_01_TfRlV-add-privilege-for-gn-docs-documentation-editing.py
@@ -0,0 +1,17 @@
+"""
+add privilege for gn-docs documentation editing
+"""
+
+from yoyo import step
+
+__depends__ = {'20260206_01_v3f4P-add-role-systemwide-data-curator'}
+
+steps = [
+    step(
+        """INSERT INTO privileges(privilege_id, privilege_description)
+        VALUES(
+        'system:documentation:edit',
+        'Allows the holder to edit documentation presented with the Genenetwork system.'
+        )""",
+        "DELETE FROM privileges WHERE privilege_id='system:documentation:edit'")
+]