An admin should always have access to the service of it’s procedures
This commit is contained in:
parent
64abd8c712
commit
93ceb79dd1
3 changed files with 9 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue