From deeebc96bb1a3ed063000c25c53478850f2d47fe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Wed, 2 Dec 2020 15:21:16 +0100 Subject: [PATCH] =?utf8?q?Zeiterfassung:=20neue=20Rechte:=20anzeigen=20bzw?= =?utf8?q?.=20bearbeiten=20der=20Eintr=C3=A4ge=20aller?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- locale/de/all | 2 ++ locale/en/all | 2 ++ .../rights_time_recording_show_edit_all.sql | 27 +++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 sql/Pg-upgrade2-auth/rights_time_recording_show_edit_all.sql diff --git a/locale/de/all b/locale/de/all index 357c17389..f4847d2a4 100755 --- a/locale/de/all +++ b/locale/de/all @@ -1276,6 +1276,7 @@ $self->{texts} = { 'Edit the sales_order' => 'Bearbeiten des Auftrags', 'Edit the sales_quotation' => 'Bearbeiten des Angebots', 'Edit time recording type' => 'Typ für Zeiterfassung bearbeiten', + 'Edit time recordings of all staff members' => 'Zeiterfassungseinträge aller Mitarbeiter bearbeiten', 'Edit title' => 'Titiel bearbeiten', 'Edit units' => 'Einheiten bearbeiten', 'Edit user signature' => 'Benutzersignatur bearbeiten', @@ -1911,6 +1912,7 @@ $self->{texts} = { 'List of jobs' => 'Jobliste', 'List of tax zones' => 'Liste der Steuerzonen', 'List open SEPA exports' => 'Noch nicht ausgeführte SEPA-Exporte anzeigen', + 'List time recordings of all staff members' => 'Zeiterfassungseinträge aller Mitarbeiter anzeigen', 'Listprice' => 'Listenpreis', 'Load' => 'Laden', 'Load an existing draft' => 'Einen bestehenden Entwurf laden', diff --git a/locale/en/all b/locale/en/all index 99c0a91d6..cc6990536 100644 --- a/locale/en/all +++ b/locale/en/all @@ -1276,6 +1276,7 @@ $self->{texts} = { 'Edit the sales_order' => '', 'Edit the sales_quotation' => '', 'Edit time recording type' => '', + 'Edit time recordings of all staff members' => '', 'Edit title' => '', 'Edit units' => '', 'Edit user signature' => '', @@ -1911,6 +1912,7 @@ $self->{texts} = { 'List of jobs' => '', 'List of tax zones' => '', 'List open SEPA exports' => '', + 'List time recordings of all staff members' => '', 'Listprice' => '', 'Load' => '', 'Load an existing draft' => '', diff --git a/sql/Pg-upgrade2-auth/rights_time_recording_show_edit_all.sql b/sql/Pg-upgrade2-auth/rights_time_recording_show_edit_all.sql new file mode 100644 index 000000000..24453a937 --- /dev/null +++ b/sql/Pg-upgrade2-auth/rights_time_recording_show_edit_all.sql @@ -0,0 +1,27 @@ +-- @tag: rights_time_recording_show_edit_all +-- @description: Rechte, Zeiterfassungseinträge aller Mitarbeiter anzuzeigen bzw. zu bearbeiten +-- @depends: right_time_recording +-- @locales: List time recordings of all staff members +-- @locales: Edit time recordings of all staff members + +INSERT INTO auth.master_rights (position, name, description, category) + VALUES ((SELECT position + 20 FROM auth.master_rights WHERE name = 'time_recording'), + 'time_recording_show_all', + 'List time recordings of all staff members', + FALSE); + +INSERT INTO auth.group_rights (group_id, "right", granted) + SELECT id, 'time_recording_show_all', true + FROM auth.group + WHERE name = 'Vollzugriff'; + +INSERT INTO auth.master_rights (position, name, description, category) + VALUES ((SELECT position + 20 FROM auth.master_rights WHERE name = 'time_recording_show_all'), + 'time_recording_edit_all', + 'Edit time recordings of all staff members', + FALSE); + +INSERT INTO auth.group_rights (group_id, "right", granted) + SELECT id, 'time_recording_edit_all', true + FROM auth.group + WHERE name = 'Vollzugriff'; -- 2.20.1