An admin should always have access to the service of it’s procedures

This commit is contained in:
Paul Chavard 2019-03-06 17:06:54 +01:00
parent 64abd8c712
commit 93ceb79dd1
3 changed files with 9 additions and 3 deletions

View file

@ -21,7 +21,7 @@
.procedure-list-element{ class: ('active' if active == 'Description') }
Description
%a#onglet-services{ href: current_administrateur.services.present? ? url_for(services_path(procedure_id: @procedure.id)) : url_for(new_service_path(procedure_id: @procedure.id)) }
%a#onglet-services{ href: (@procedure.service.present? || current_administrateur.services.present?) ? url_for(services_path(procedure_id: @procedure.id)) : url_for(new_service_path(procedure_id: @procedure.id)) }
.procedure-list-element
Service
- if @procedure.missing_steps.include?(:service)