Skip to content
Extraits de code Groupes Projets
Valider f3c20bf3 rédigé par Raphael's avatar Raphael
Parcourir les fichiers

accept comments from strangers

parent c7974f80
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -58,8 +58,7 @@ class Comment
end
def signature_valid?
Rails.logger.warn "Received comment has no person" unless person
verify_signature(creator_signature, person)
person ? verify_signature(creator_signature, person) : true
end
protected
......
......@@ -195,7 +195,6 @@ class User
person.save
elsif object.is_a?(Comment)
object.person.save
raise "In receive for #{self.real_name}, signature was not valid on: #{object.inspect}" unless object.post.person == self.person || object.verify_post_creator_signature
object.save
dispatch_comment object unless owns?(object)
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter