X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/deb4d2dbb676d7d6f69dfe7815d6e0cb09bd4a44..53593baa211863fbf66540cf1bcc36c8fb37257f:/sql/Pg-upgrade2-auth/right_purchase_all_edit.sql diff --git a/sql/Pg-upgrade2-auth/right_purchase_all_edit.sql b/sql/Pg-upgrade2-auth/right_purchase_all_edit.sql new file mode 100644 index 000000000..ca354421d --- /dev/null +++ b/sql/Pg-upgrade2-auth/right_purchase_all_edit.sql @@ -0,0 +1,14 @@ +-- @tag: right_purchase_all_edit +-- @description: Recht zum Bearbeiten von Einkaufsdokumenten aller Mitarbeiter (Trennung nach VK u. EK) +-- @depends: release_3_5_4 +-- @locales: View/edit all employees purchase documents + +INSERT INTO auth.master_rights (position, name, description, category) + VALUES ((SELECT position + 10 FROM auth.master_rights WHERE name = 'purchase_letter_edit'), + 'purchase_all_edit', + 'View/edit all employees purchase documents', + FALSE); + +-- same rights as sales_all_edit because sales and purchase were not distingushed before +INSERT INTO auth.group_rights (group_id, "right", granted) + SELECT group_id, 'purchase_all_edit', granted FROM auth.group_rights WHERE "right" = 'sales_all_edit';