1 -- @tag: rights_view_cv_report
2 -- @description: Recht, um auf Kunden-/Lieferanten-Stammdaten-Bericht zugreifen zu können
3 -- @depends: release_3_9_0 add_master_rights master_rights_position_gaps
4 -- @locales: View customer report
5 -- @locales: View vendor report
7 INSERT INTO auth.master_rights (position, name, description, category)
8 VALUES ((SELECT position + 10 FROM auth.master_rights WHERE name = 'customer_vendor_all_edit'),
9 'customer_report_view',
10 'View customer report',
13 INSERT INTO auth.master_rights (position, name, description, category)
14 VALUES ((SELECT position + 10 FROM auth.master_rights WHERE name = 'customer_report_view'),
19 INSERT INTO auth.group_rights (group_id, "right", granted)
20 SELECT DISTINCT(id), 'customer_report_view', TRUE
23 INSERT INTO auth.group_rights (group_id, "right", granted)
24 SELECT DISTINCT(id), 'vendor_report_view', TRUE