mirror of
https://github.com/redmine/redmine.git
synced 2025-11-14 01:06: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:
@@ -75,12 +75,10 @@ class ReactionTest < ActiveSupport::TestCase
|
||||
|
||||
expected = {
|
||||
1 => Reaction::Detail.new(
|
||||
reaction_count: 3,
|
||||
visible_users: [users(:users_003), users(:users_002), users(:users_001)],
|
||||
user_reaction: reactions(:reaction_003)
|
||||
),
|
||||
6 => Reaction::Detail.new(
|
||||
reaction_count: 1,
|
||||
visible_users: [users(:users_002)],
|
||||
user_reaction: nil
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user