mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: implement typed database for custom permissions (breaks existing custom roles) (#13457)
* chore: typed database custom permissions * add migration to fix any custom roles out there
This commit is contained in:
@@ -0,0 +1 @@
|
||||
UPDATE custom_roles SET org_permissions = '{}';
|
||||
@@ -0,0 +1,4 @@
|
||||
-- Previous custom roles are now invalid, as the json changed. Since this is an
|
||||
-- experimental feature, there is no point in trying to save the perms.
|
||||
-- This does not elevate any permissions, so it is not a security issue.
|
||||
UPDATE custom_roles SET org_permissions = '[]';
|
||||
Reference in New Issue
Block a user