Prevent users from locking issue discussion if canUpdateIssue is false

What does this MR do and why?

Check that the current user has permission to update the issue before showing the lock issue option.

Screenshots or screen recordings

Before After
image image

How to set up and validate locally

  1. Check out this branch
  2. In the GDK, sign in as or impersonate a user with guest access
  3. Navigate to an issue that the guest did not author
  4. Open the action menu
  5. You should not see the "Lock discussion" menu item

Merge request reports

Loading