X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/deb4d2dbb676d7d6f69dfe7815d6e0cb09bd4a44..53593baa211863fbf66540cf1bcc36c8fb37257f:/sql/Pg-upgrade2-auth/right_time_recording.sql diff --git a/sql/Pg-upgrade2-auth/right_time_recording.sql b/sql/Pg-upgrade2-auth/right_time_recording.sql new file mode 100644 index 000000000..b8e0b939d --- /dev/null +++ b/sql/Pg-upgrade2-auth/right_time_recording.sql @@ -0,0 +1,15 @@ +-- @tag: right_time_recording +-- @description: Recht zur Zeiterfassung +-- @depends: release_3_5_6_1 +-- @locales: Create, edit and list time recordings + +INSERT INTO auth.master_rights (position, name, description, category) + VALUES ((SELECT position + 50 FROM auth.master_rights WHERE name = 'email_employee_readall'), + 'time_recording', + 'Create, edit and list time recordings', + FALSE); + +INSERT INTO auth.group_rights (group_id, "right", granted) + SELECT id, 'time_recording', true + FROM auth.group + WHERE name = 'Vollzugriff';