aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authorcedricnjanga2017-09-04 09:34:30 +0200
committercedricnjanga2017-09-04 09:34:47 +0200
commitf846b41c7e1570f3047e71fc74cbe1b2f9e13fc6 (patch)
treeec8870b17baea02fd163516f98ed8e23a97df7aa /app/controllers/application_controller.rb
parentadee10292855612808a8e6d1c764a148f68eb69f (diff)
downloadchouette-core-f846b41c7e1570f3047e71fc74cbe1b2f9e13fc6.tar.bz2
add some change for the Referential#new_from to only have a line collection regarding the functional scope of the current organozation
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index d15aa336d..47b54039c 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_functional_scope
+ JSON.parse(current_organisation.sso_attributes["functional_scope"]) if current_organisation
+ end
+ helper_method :current_functional_scope
+
def begin_of_association_chain
current_organisation
end