Do not show confidential notes checkbox for users with access level less than REPORTER

What does this MR do and why?

We are going to allow only reporter+ users to create confidential notes, this MR hides the checkbox to mark a note as confidential to users without access.

We should also not allow confidential notes being created by guests. This is going to be handled by !98588 (merged).

Before

confidential_note_checkbox

After

after_checkbox_confidential_notes_2

related to #363045 (comment 1110036970)

How to validate locally

  1. Create project/group
  2. Add a user as guest
  3. Go to an epic or issue comment box
  4. Confidential checkbox from the screenshot above should not be visible
  5. Promote the same user to reporter
  6. Confidential checkbox should now be visible

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Felipe Cardozo

Merge request reports

Loading