Update app/models/user.rb
Co-authored-by: Colin Darie <colin@darie.eu>
This commit is contained in:
parent
0864666d0a
commit
e2d5834dc2
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ class User < ApplicationRecord
|
|||
end
|
||||
|
||||
def invite?(dossier)
|
||||
invites.pluck(:dossier_id).include?(dossier.id)
|
||||
invites.exists?(dossier:)
|
||||
end
|
||||
|
||||
def owns_or_invite?(dossier)
|
||||
|
|
Loading…
Reference in a new issue