fix projects autocomplete for real user

This commit is contained in:
Alexander Machehin 2013-08-02 20:02:24 +06:00
parent 348b76024c
commit 8ba75fe48c
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ class Platforms::ProductsController < Platforms::BaseController
skip_before_filter :authenticate_user!, :only => [:index, :show] if APP_CONFIG['anonymous_access'] skip_before_filter :authenticate_user!, :only => [:index, :show] if APP_CONFIG['anonymous_access']
load_and_authorize_resource :platform 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] before_filter :set_project, :only => [:create, :update]
def index def index