Skip to content
Snippets Groups Projects
Commit 403df8b2 authored by Guillaume Heurtier's avatar Guillaume Heurtier
Browse files

FIX #11645 TIME 0:25 set all groups as parameters for groups having admin_users

parent befc45df
No related branches found
No related tags found
No related merge requests found
......@@ -437,6 +437,12 @@ DELETE FROM usergroups_services WHERE service_id = 'delete_attachments';
ALTER TABLE usergroups_services DROP COLUMN IF EXISTS parameters;
ALTER TABLE usergroups_services ADD parameters jsonb;
UPDATE usergroups_services SET parameters = (
cast('{"groups": [' || (
SELECT string_agg(cast(id AS VARCHAR), ', ' ORDER BY id) FROM usergroups
) || ']}' AS jsonb)
)
WHERE service_id = 'admin_users';
UPDATE listmodels SET title = object_id WHERE title IS NULL;
UPDATE baskets SET basket_clause = REGEXP_REPLACE(basket_clause, 'coll_id(\s*)=(\s*)''letterbox_coll''(\s*)AND', '', 'gmi') WHERE basket_id in ('CopyMailBasket', 'DdeAvisBasket');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment