Allow only users with `adminNote` permission to edit the design note
What does this MR do?
Previously, all users were shown an icon and form to edit a note and they got an error on sending a form which could create bad user experience. Now, only the user who has a permission to edit a note will see the edit button.
In addition, I've renamed permissions
query to design_permissions
to avoid mixing it with note_permissions
and changed name casing to snake case (should be done for all the .graphql
files in Design Management)
Screenshots
With admin permissions | Without admin permissions |
---|---|
Does this MR meet the acceptance criteria?
Conformity
-
Changelog entry -
Documentation (if required) -
Code review guidelines -
Merge request performance guidelines -
Style guides -
Database guides
Availability and Testing
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process. -
Tested in all supported browsers -
Informed Infrastructure department of a default or new setting change, if applicable per definition of done
Edited by 🤖 GitLab Bot 🤖