Let team members update their own profile without admin routes, seed team.profile.update_mine RBAC, and add FAQ/personas/ratings admin integration guides. Co-authored-by: Cursor <cursoragent@cursor.com>
16 lines
505 B
SQL
16 lines
505 B
SQL
DELETE FROM role_permissions rp
|
|
USING roles r, permissions p
|
|
WHERE rp.role_id = r.id
|
|
AND rp.permission_id = p.id
|
|
AND r.name IN ('INSTRUCTOR', 'SUPPORT')
|
|
AND p.key IN ('team.profile.get_mine', 'team.profile.update_mine', 'team.members.change_password');
|
|
|
|
DELETE FROM role_permissions rp
|
|
USING roles r, permissions p
|
|
WHERE rp.role_id = r.id
|
|
AND rp.permission_id = p.id
|
|
AND r.name = 'ADMIN'
|
|
AND p.key = 'team.profile.update_mine';
|
|
|
|
DELETE FROM permissions WHERE key = 'team.profile.update_mine';
|