diff options
| author | Luc Donnet | 2017-09-07 09:36:02 +0200 | 
|---|---|---|
| committer | Luc Donnet | 2017-09-07 09:36:02 +0200 | 
| commit | bc97ec2588530195075df25ad81f3fd338cef90f (patch) | |
| tree | eaf8e9a8f542bf235fbe537b9238719b02d16f1e /app/controllers/application_controller.rb | |
| parent | cb87df36c48482b1eb08972be7adcf1a0811cc64 (diff) | |
| download | chouette-core-bc97ec2588530195075df25ad81f3fd338cef90f.tar.bz2 | |
Update links in nav left
Diffstat (limited to 'app/controllers/application_controller.rb')
| -rw-r--r-- | app/controllers/application_controller.rb | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index cc1c30703..8cb5726c4 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -33,6 +33,11 @@ class ApplicationController < ActionController::Base    end    helper_method :current_organisation +  def current_offer_workbench +    current_organisation.workbenches.where(name: "Gestion de l'offre") +  end +  helper_method :current_offer_workbench +    def current_functional_scope      functional_scope = current_organisation.sso_attributes.try(:[], "functional_scope") if current_organisation      JSON.parse(functional_scope) if functional_scope | 
