From 7dc790bc9c6091b03061a3eaebf79f0258bbc12a Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 11 Mar 2026 11:20:17 -0500 Subject: Documention Edit: Add new privilege. Add a privilege to restrict ability to edit documentation that comes with the Genenetwork system. --- ...V-add-privilege-for-gn-docs-documentation-editing.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 migrations/auth/20260311_01_TfRlV-add-privilege-for-gn-docs-documentation-editing.py 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'") +] -- cgit 1.4.1