From 8ba75fe48cb7c0aa816060c0039a801ea0071726 Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Fri, 2 Aug 2013 20:02:24 +0600 Subject: [PATCH] fix projects autocomplete for real user --- app/controllers/platforms/products_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/platforms/products_controller.rb b/app/controllers/platforms/products_controller.rb index 967c09570..1bf862f5e 100644 --- a/app/controllers/platforms/products_controller.rb +++ b/app/controllers/platforms/products_controller.rb @@ -5,7 +5,7 @@ class Platforms::ProductsController < Platforms::BaseController skip_before_filter :authenticate_user!, :only => [:index, :show] if APP_CONFIG['anonymous_access'] load_and_authorize_resource :platform - load_and_authorize_resource :product, :through => :platform + load_and_authorize_resource :product, :through => :platform, :except => :autocomplete_project before_filter :set_project, :only => [:create, :update] def index