Skip to content

Commit

Permalink
do not duplicate subscribers if user belongs to different group
Browse files Browse the repository at this point in the history
  • Loading branch information
yrudman committed Aug 28, 2018
1 parent 5f129ad commit af75cbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/notification_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def subscriber_ids(subject, initiator)
subject.tenant
elsif initiator.kind_of?(User)
initiator.current_tenant
end.try(:user_ids)
end.try(:user_ids).try(:uniq)
when AUDIENCE_SUPERADMIN
User.superadmins.pluck(:id)
when AUDIENCE_NONE
Expand Down

0 comments on commit af75cbc

Please sign in to comment.