Neues Druck-Recht der Gruppe 'Vollzugriff' gewähren
authorMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 23 May 2011 10:35:32 +0000 (12:35 +0200)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 23 May 2011 10:35:32 +0000 (12:35 +0200)
Fix für Bug 1562.

sql/Pg-upgrade2-auth/add_batch_printing_to_full_access.sql [new file with mode: 0644]

diff --git a/sql/Pg-upgrade2-auth/add_batch_printing_to_full_access.sql b/sql/Pg-upgrade2-auth/add_batch_printing_to_full_access.sql
new file mode 100644 (file)
index 0000000..e57d9e0
--- /dev/null
@@ -0,0 +1,17 @@
+-- @tag: add_batch_printing_to_full_access
+-- @description: Gruppe "Vollzugriff" Recht auf Stapeldruck-Menü gewähren
+-- @depends:
+-- @charset: utf-8
+DELETE FROM auth.group_rights
+WHERE ("right" = 'batch_printing')
+  AND granted
+  AND group_id = (
+    SELECT id
+    FROM auth."group"
+    WHERE name = 'Vollzugriff'
+  );
+
+INSERT INTO auth.group_rights (group_id, "right", granted)
+  SELECT id, 'batch_printing', TRUE
+  FROM auth."group"
+  WHERE name = 'Vollzugriff';