Change invites autorisation in commentaire model
This commit is contained in:
parent
9a0a391c40
commit
48451553b9
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ class Commentaire < ActiveRecord::Base
|
|||
private
|
||||
|
||||
def internal_notification
|
||||
if email == dossier.user.email || dossier.invites.pluck(:email).to_a.include?(email)
|
||||
if email == dossier.user.email || dossier.invites_user.pluck(:email).to_a.include?(email)
|
||||
NotificationService.new('commentaire', self.dossier.id).notify
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue