Zeiterfassung: einfaches Recht andere Position
[kivitendo-erp.git] / sql / Pg-upgrade2-auth / right_time_recording.sql
1 -- @tag: right_time_recording
2 -- @description: Recht zur Zeiterfassung
3 -- @depends: release_3_5_6_1
4 -- @locales: Create, edit and list time recordings
5
6 INSERT INTO auth.master_rights (position, name, description, category)
7   VALUES ((SELECT position + 50 FROM auth.master_rights WHERE name = 'email_employee_readall'),
8           'time_recording',
9           'Create, edit and list time recordings',
10           FALSE);
11
12 INSERT INTO auth.group_rights (group_id, "right", granted)
13   SELECT id, 'time_recording', true
14   FROM auth.group
15   WHERE name = 'Vollzugriff';