Only invite experts to dossiers instructeur have access to
This commit is contained in:
parent
8a514e0713
commit
f0ea96772d
7 changed files with 31 additions and 10 deletions
|
@ -14,7 +14,7 @@ module CreateAvisConcern
|
|||
allowed_dossiers = [dossier]
|
||||
|
||||
if create_avis_params[:invite_linked_dossiers].present?
|
||||
allowed_dossiers += dossier.linked_dossiers
|
||||
allowed_dossiers += dossier.linked_dossiers_for(current_instructeur)
|
||||
end
|
||||
|
||||
create_results = Avis.create(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue