only socket if the object isn't yours

This commit is contained in:
Raphael 2010-08-16 14:18:08 -07:00
parent b463958f0d
commit 71aaa9240c

View file

@ -173,7 +173,7 @@ class User
elsif object.verify_creator_signature == true
Rails.logger.debug("Saving object: #{object}")
object.save
object.socket_to_uid( id) if object.respond_to? :socket_to_uid
object.socket_to_uid( id) if (object.respond_to?(:socket_to_uid) && !self.owns?(object))
object.person.send_comment object if (object.is_a?(Comment) && self.owns?( object.post))
end
end