Draft: Use moveDesign permission to control design reordering ability
What does this MR do and why?
Use ProjectPermissions.moveDesign
to restrict a user with Guest
role from reordering designs in the Design Widget.
References
Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
TBA
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Go to a project with design management enabled, refer to docs.
- Add a bunch of images as designs to one of the issues in the project
- Verify if reordering of designs works using dragging
- Add a user as Guest member to the same project
- Go to admin and impersonate as Guest user which was added to project as guest, refer to docs.
- Go to same issue with designs and try to drag designs to reorder, it should not drag.
Related to #508576