Allow link to any dossier

This commit is contained in:
Paul Chavard 2018-10-04 18:11:30 +02:00 committed by gregoirenovel
parent 0927905d2e
commit e3e83b6021

View file

@ -1,7 +1,5 @@
- if id.present? - if id.present?
- dossier = current_user&.dossiers&.find_by(id: id) - dossier = Dossier.find_by(id: id)
- dossier ||= current_gestionnaire&.dossiers&.find_by(id: id)
- dossier ||= current_administrateur&.dossiers&.find_by(id: id)
- if dossier.blank? - if dossier.blank?
%p.text-warning %p.text-warning
Ce dossier est inconnu Ce dossier est inconnu