Skip to content

Commit df72238

Browse files
committed
Update maintainers to have project create permissions
1 parent e29cb51 commit df72238

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sql/2025-09-22_org_membership_roles.sql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
-- Org membership is now associated with a specific role within the org, this simplifies things,
22
-- makes the data more consistent, no need to rely on triggers, and makes it much easier to display in the UI.
33

4+
UPDATE roles
5+
SET permissions = array_append(permissions, 'org:create_project'::permission)
6+
WHERE ref = 'org_maintainer'
7+
AND NOT permissions @> (ARRAY['org:create_project']::permission[])
8+
;
9+
410

511
-- SANITY CHECK:
612
-- SELECT org_user.handle, member_user.handle, role.ref

0 commit comments

Comments
 (0)