mirror of
https://github.com/redmine/redmine.git
synced 2025-11-13 16:56:00 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user