fix(refactor): forgot to pass var, classy
This commit is contained in:
parent
a74ca8ad39
commit
46fc956de3
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ class Commentaire < ApplicationRecord
|
||||||
someone.present? && email == someone&.email
|
someone.present? && email == someone&.email
|
||||||
end
|
end
|
||||||
|
|
||||||
def soft_deletable?
|
def soft_deletable?(connected_user)
|
||||||
sent_by?(connected_user) && sent_by_instructeur? && !soft_deleted?
|
sent_by?(connected_user) && sent_by_instructeur? && !soft_deleted?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue