wip(dossiers/messages/_message): poc destroy button with expected ACL support

This commit is contained in:
Martin 2021-11-15 11:30:41 +01:00
parent f250a750fd
commit b03dc6ad5d
4 changed files with 39 additions and 1 deletions

View file

@ -75,7 +75,7 @@ class Commentaire < ApplicationRecord
end
def sent_by?(someone)
email == someone.email
email == someone&.email
end
def file_url