fix: No org admins until organizations are in the UI (#5414)

* fix: No org admins until organizations are in the UI

Until organizations have management UI, we should not set any org
admins. This goes around the site wide perms transparently and
is confusing to users.

Default user is no longer an org admin, so the demotion test makes
no sense
This commit is contained in:
Steven Masley
2022-12-14 11:05:42 -06:00
committed by GitHub
parent 012a9e759e
commit 27386d49d0
5 changed files with 17 additions and 12 deletions

View File

@ -0,0 +1,6 @@
UPDATE
organization_members
SET
roles = ARRAY [] :: text[]
WHERE
'organization-admin:'||organization_id = ANY(roles);