wasn't including the right people in some circumstances
This commit is contained in:
parent
a3b4f96d37
commit
8197d74955
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue