Allow authors of personal snippets and instance admins to administer notes/comments by other users in line with behavior of other Noteable
What does this MR do and why?
Currently, authors of personal snippets and GitLab instance admins cannot edit or delete any notes/comments left on them by other users. This MR allows them to, which brings the behavior in line with how notes/comments work on project snippet notes/comments.
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
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
- Load GDK and create 2 users (
user_a
anduser_b
) - As
user_a
, create a personal snippet with public permissions - As
user_b
, create a comment/note onuser_a
's personal snippet created in the previous step - As
user_a
, confirm you can edit/deleteuser_b
's comment/note - As
root
or your admin user, confirm you can edit/deleteuser_b
's comment/note
Edited by Ruby Nealon