wip(dossiers/messages/_message): poc destroy button with expected ACL support
This commit is contained in:
parent
f250a750fd
commit
b03dc6ad5d
4 changed files with 39 additions and 1 deletions
|
@ -75,7 +75,7 @@ class Commentaire < ApplicationRecord
|
|||
end
|
||||
|
||||
def sent_by?(someone)
|
||||
email == someone.email
|
||||
email == someone&.email
|
||||
end
|
||||
|
||||
def file_url
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue