Show reaction counts and user names only for reactions visible to the logged-in user (#42630).

Patch by Katsuya HIDAKA (user:hidakatsuya).


git-svn-id: https://svn.redmine.org/redmine/trunk@23768 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2025-05-15 05:01:54 +00:00
parent 66e2d1a9a9
commit e7703a0170
5 changed files with 15 additions and 26 deletions

View File

@@ -3347,8 +3347,8 @@ class IssuesControllerTest < Redmine::ControllerTest
# The current_user can only see members who belong to projects that the current_user has access to.
# Since the Redmine Admin user does not belong to any projects visible to the current_user,
# the Redmine Admin user's name is not displayed in the reaction user list. Instead, "1 other" is shown.
assert_select 'a.reaction-button[title=?]', 'Dave Lopper, John Smith, and 1 other' do
assert_select 'span.icon-label', '3'
assert_select 'a.reaction-button[title=?]', 'Dave Lopper and John Smith' do
assert_select 'span.icon-label', '2'
end
end