From: Moritz Bunkus Date: Mon, 23 May 2011 10:35:32 +0000 (+0200) Subject: Neues Druck-Recht der Gruppe 'Vollzugriff' gewähren X-Git-Tag: release-2.6.3~25^2~8^2~5 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=4ad58972c29170a245a4fe4cbba9a1488fa919a9;p=kivitendo-erp.git Neues Druck-Recht der Gruppe 'Vollzugriff' gewähren Fix für Bug 1562. --- 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 index 000000000..e57d9e02b --- /dev/null +++ b/sql/Pg-upgrade2-auth/add_batch_printing_to_full_access.sql @@ -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';