Skip to content
Snippets Groups Projects
Commit 0f12ba49 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Merge branch 'patch-1' into 'master'

default privileges are marked with '*' project id

See merge request !949
parents e1234ffa a5f99216
No related branches found
No related tags found
1 merge request!949default privileges are marked with '*' project id
Pipeline #14767 failed
...@@ -106,3 +106,6 @@ alter table privilege_table alter column object_id type varchar; ...@@ -106,3 +106,6 @@ alter table privilege_table alter column object_id type varchar;
-- change id to project_id for project prvileges -- change id to project_id for project prvileges
update privilege_table set object_id = (select project_id from project_table where id::text = object_id) where object_id is not null; update privilege_table set object_id = (select project_id from project_table where id::text = object_id) where object_id is not null;
-- default privileges are marked with '*' project id
update privilege_table set object_id = '*' where object_id is null and type like '%PROJECT%';
\ No newline at end of file
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