fix(refactor): forgot to pass var, classy

This commit is contained in:
Martin 2021-11-15 15:01:56 +01:00
parent a74ca8ad39
commit 46fc956de3

View file

@ -83,7 +83,7 @@ class Commentaire < ApplicationRecord
someone.present? && email == someone&.email
end
def soft_deletable?
def soft_deletable?(connected_user)
sent_by?(connected_user) && sent_by_instructeur? && !soft_deleted?
end