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

Return if nil

parent 5a92f9e8
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -58,9 +58,8 @@ class Comment ...@@ -58,9 +58,8 @@ class Comment
end end
def signature_valid? def signature_valid?
Rails.logger.warn "Validating signature on comment from: #{person.inspect}" return true if person.nil?
Rails.logger.warn "#{person.real_name}" if person verify_signature(creator_signature, person)
person ? verify_signature(creator_signature, person) : true
end end
protected protected
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter