You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: allow projects editors to provision and merge sandboxes (#4424)
* feat: allow editors to provision and merge sandboxes (#4384)
Expand sandbox permissions so that editors (not just admin/owner) on a
project can fork new sandboxes and merge them back. Merge authorization
now checks the user's role on the target project rather than only the
source sandbox.
- Add :editor to provision_sandbox allowed roles
- Add :merge_sandbox policy action checking editor+ on target project
- Update check_manage_permissions so merge uses editor+ on root
- Filter merge target options by user's role on each target
- Add server-side merge authorization check in confirm-merge handler
* chore: add changelog entry for #4384
* test: cover nil branch in user_role_on_project/2
Add a no-membership sandbox to the target filtering test so the nil
return path is exercised.
* refactor: clean up check_manage_permissions logic
Remove unreachable is_superuser check in the else branch and derive
is_root_editor_plus from is_root_owner_or_admin to avoid a redundant
scan of project_users.
0 commit comments