Grant roll-call permissions to editor and viewer staff.
Roll call is a staff work log, so smaller team roles can use it when the module is on. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
3558c441b9
commit
eb0644e6c1
@@ -0,0 +1,8 @@
|
|||||||
|
-- Roll call is for every staff role, including editor and viewer.
|
||||||
|
|
||||||
|
INSERT INTO role_permissions (role_id, permission_id)
|
||||||
|
SELECT r.id, p.id
|
||||||
|
FROM roles r
|
||||||
|
JOIN permissions p ON p.slug LIKE 'roll_calls.%'
|
||||||
|
WHERE r.slug IN ('editor', 'viewer', 'business_staff')
|
||||||
|
ON CONFLICT DO NOTHING;
|
||||||
Reference in New Issue
Block a user