You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
738 B
9 lines
738 B
ALTER TABLE users_organizations ADD COLUMN manage_users BOOLEAN NOT NULL DEFAULT FALSE;
|
|
ALTER TABLE users_organizations ADD COLUMN manage_groups BOOLEAN NOT NULL DEFAULT FALSE;
|
|
ALTER TABLE users_organizations ADD COLUMN manage_policies BOOLEAN NOT NULL DEFAULT FALSE;
|
|
-- Previously the server stored members created with the Custom role as Manager (3) and
|
|
-- masqueraded them as Custom (4) in all API responses. Now that Custom is a real, persisted
|
|
-- type, convert those members so clients (which no longer know the Manager role) keep
|
|
-- seeing exactly what they saw before. access_all is preserved; the new flags stay FALSE,
|
|
-- which matches the capabilities these members had.
|
|
UPDATE users_organizations SET atype = 4 WHERE atype = 3;
|
|
|