Skip to content

Commit 6efc8d6

Browse files
committed
add migration to fix any custom roles out there
1 parent ff7fa1c commit 6efc8d6

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
UPDATE custom_roles SET org_permissions = '{}';
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-- Previous custom roles are now invalid, as the json changed. Since this is an
2+
-- experimental feature, there is no point in trying to save the perms.
3+
-- This does not elevate any permissions, so it is not a security issue.
4+
UPDATE custom_roles SET org_permissions = '[]';

0 commit comments

Comments
 (0)