Check ownership on the comment's post
This commit is contained in:
parent
deeb4832c1
commit
b463958f0d
1 changed files with 1 additions and 1 deletions
|
|
@ -174,7 +174,7 @@ class User
|
|||
Rails.logger.debug("Saving object: #{object}")
|
||||
object.save
|
||||
object.socket_to_uid( id) if object.respond_to? :socket_to_uid
|
||||
object.person.send_comment object if (object.is_a?(Comment) && 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