wasn't including the right people in some circumstances

This commit is contained in:
Connor Turland 2016-04-22 15:02:16 -04:00
parent a3b4f96d37
commit 8197d74955
2 changed files with 2 additions and 2 deletions

View file

@ -36,7 +36,7 @@ class Synapse < ActiveRecord::Base
# :nocov: # :nocov:
def collaborator_ids def collaborator_ids
if defer_to_map if defer_to_map
defer_to_map.collaborators.map(&:id) defer_to_map.editors.select{|mapper| not mapper == self.user }.map(&:id)
else else
[] []
end end

View file

@ -92,7 +92,7 @@ class Topic < ActiveRecord::Base
def collaborator_ids def collaborator_ids
if defer_to_map if defer_to_map
defer_to_map.collaborators.map(&:id) defer_to_map.editors.select{|mapper| not mapper == self.user }.map(&:id)
else else
[] []
end end