29 lines
1.2 KiB
Plaintext
Executable File
29 lines
1.2 KiB
Plaintext
Executable File
-------------------------------------------------------------------------
|
|
-- INFO: New operator right for Uas edit & linking
|
|
-- PROJECT: Guez
|
|
-- DATE: 2025-11-12
|
|
-- VERSION: 2.143
|
|
-------------------------------------------------------------------------
|
|
|
|
-- GLOBAL: OPM;
|
|
BEGIN;
|
|
|
|
-- delete rights (if already exists)
|
|
DELETE FROM opm_group WHERE id IN (452984852, 453509120);
|
|
DELETE FROM opm_access_control_level WHERE id = 453509121;
|
|
|
|
|
|
--- Uas - 0x1b080000 = 453509120
|
|
INSERT INTO opm_group (id, name, description, type_id, is_hidden) VALUES (453509120, 'Uas', 'Edit and link Uas to participants', 4, false);
|
|
--- Base: 453509120, EditAndLinkUas - 453509121 = 0x1b080001
|
|
INSERT INTO opm_access_control_level (id, name, description) VALUES (453509121, 'EditAndLinkUas', 'Edit and link Uas to participants');
|
|
INSERT INTO opm_group (id, name, description, type_id, is_hidden) VALUES (452984852, 'EditAndLinkUas', 'Edit and link Uas to participants', 1, true);
|
|
INSERT INTO opm_acl_allow (group_id, acl_id) VALUES (452984852, 453509121); -- group_id is: 452984852 = 0x1b000014
|
|
INSERT INTO opm_group_group (group_id, is_member_of_group_id) VALUES (453509120, 452984852); -- Uas
|
|
|
|
COMMIT;
|
|
|
|
-- EXERCISE: NONE;
|
|
BEGIN;
|
|
COMMIT;
|