Skip to content

Allow only users with `adminNote` permission to edit the design note

Natalia Tepluhina requested to merge ntepluhina-edit-note-fix into master

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
Screenshot_2020-05-14_at_07.09.44 Screenshot_2020-05-14_at_07.10.22

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by 🤖 GitLab Bot 🤖

Merge request reports