Defect #39521
closedMention autocomplete not displaying for users without "Edit issues" permission
0%
Description
When users input the "@" symbol to mention other members within a issue's note textarea, the expected behavior is to display a list of mentionable candidates. This feature, however, seems to be contingent upon having "Edit issues" permissions. Users without these permissions, but with "Add watchers" rights, are unable to view the mention candidates despite being able to use the mention feature.
Reading the code, I've found that the update_data_sources_for_auto_complete method is called within the issue/form partial. The issue/form partial, however, does not render for users lacking "Edit issues" permissions, hence obstructing the display of mention candidates. This behavior occurs even if a user has both "Add notes" and "Add Watchers" permissions.
I have attached a patch to ensure that the mention autocomplete functionality is accessible to all users with mention capability, not just those who can edit tickets.
Best regards,
Files