X-Git-Url: http://wagnertech.de/git?p=kivitendo-erp.git;a=blobdiff_plain;f=sql%2FPg-upgrade2-auth%2Fright_purchase_all_edit.sql;fp=sql%2FPg-upgrade2-auth%2Fright_purchase_all_edit.sql;h=ca354421d70182f51f3ad1692725f8b0c13287ad;hp=0000000000000000000000000000000000000000;hb=53593baa211863fbf66540cf1bcc36c8fb37257f;hpb=deb4d2dbb676d7d6f69dfe7815d6e0cb09bd4a44 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';