mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
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:
6
coderd/database/migrations/000086_no_org_admins.up.sql
Normal file
6
coderd/database/migrations/000086_no_org_admins.up.sql
Normal file
@ -0,0 +1,6 @@
|
||||
UPDATE
|
||||
organization_members
|
||||
SET
|
||||
roles = ARRAY [] :: text[]
|
||||
WHERE
|
||||
'organization-admin:'||organization_id = ANY(roles);
|
Reference in New Issue
Block a user