about summary refs log tree commit diff
diff options
context:
space:
mode:
-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'")
+]