only socket if the object isn't yours
This commit is contained in:
parent
b463958f0d
commit
71aaa9240c
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue