Fix 'Assign yourself' visibility for users without permissions
What does this MR do and why?
Related to #371020 (closed)
The new assignees widget showed the Assign yourself button even for users that don't have permissions.
This MR fixes that.
Screenshots or screen recordings
Without the changes
| User access | Issue sidebar | Board sidebar |
|---|---|---|
| Reporter+ | ![]() |
![]() |
| None/Guest | ![]() |
![]() |
With the changes
| User access | Issue sidebar | Board sidebar |
|---|---|---|
| Reporter+ | ![]() |
![]() |
| None/Guest | ![]() |
![]() |
How to set up and validate locally
- Make sure the
:issue_assignees_widgetfeature flag is enabled- Open rails console with
gdk rails c - Run
Feature.enabled?(:issue_assignees_widget) - If the previous command returned
false, runFeature.enable(:issue_assignees_widget)
- Open rails console with
- Log in or impersonate a user
- Find a project the user is not a member of or has guest access
- Find an issue that is not assigned to anyone
- The
Assign yourselfbutton should not be visible on the sidebar
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.







