Commit 41075bad authored by Douwe Maan's avatar Douwe Maan

Chaining ftw

parent 27d952b1
...@@ -49,13 +49,9 @@ module Participable ...@@ -49,13 +49,9 @@ module Participable
end end
participants_for(value, current_user) participants_for(value, current_user)
end.compact.uniq end.compact.uniq.select do |user|
participants.select! do |user|
user.can?(:read_project, self.project) user.can?(:read_project, self.project)
end end
participants
end end
private private
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment