Ulf Gebhardt 756a2cdf64
refactor(backend): structural change to match directus-sync's default (#377)
* a small structural change to fit better with the default of directus-sync

* revert mage conflict
2025-09-10 12:20:51 +02:00

5 lines
319 B
SQL

UPDATE public.directus_permissions
SET presets = jsonb_set(presets::jsonb,'{role}', to_jsonb((SELECT id FROM public.directus_roles WHERE name = 'Registrated')), true)
WHERE policy = (SELECT id FROM public.directus_policies WHERE name = '$t:public_label')
AND collection = 'directus_users'
AND action = 'create';