From d94b1271d147fdb5bbd1e616e116173198e858db Mon Sep 17 00:00:00 2001 From: Vlatka Pavisic Date: Mon, 6 Feb 2017 11:42:12 +0100 Subject: Refs #2476 : Disable modification and deletion of resources from another referential; in progress --- app/controllers/chouette_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/controllers/chouette_controller.rb') diff --git a/app/controllers/chouette_controller.rb b/app/controllers/chouette_controller.rb index 074fc0515..dd1002fd8 100644 --- a/app/controllers/chouette_controller.rb +++ b/app/controllers/chouette_controller.rb @@ -10,9 +10,9 @@ class ChouetteController < BreadcrumbController end def referential - @referential ||= current_organisation.referentials.find params[:referential_id] + @referential ||= Referential.find params[:referential_id] end - + alias_method :current_referential, :referential helper_method :current_referential -- cgit v1.2.3