Allow link to any dossier
This commit is contained in:
parent
0927905d2e
commit
e3e83b6021
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue