mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-16 16:16:43 +10:00
Chaining ftw
This commit is contained in:
@@ -49,13 +49,9 @@ module Participable
|
||||
end
|
||||
|
||||
participants_for(value, current_user)
|
||||
end.compact.uniq
|
||||
|
||||
participants.select! do |user|
|
||||
end.compact.uniq.select do |user|
|
||||
user.can?(:read_project, self.project)
|
||||
end
|
||||
|
||||
participants
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user