[refs #90] fixed access

This commit is contained in:
Alexander Machehin 2012-09-26 23:10:04 +06:00
parent cc05fa695a
commit 4100b875bd
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
class Projects::PullRequestsController < Projects::BaseController
before_filter :authenticate_user!
skip_before_filter :authenticate_user!, :only => [:index, :show] if APP_CONFIG['anonymous_access']
load_resource :project
load_and_authorize_resource :project
load_resource :issue, :through => :project, :find_by => :serial_id, :parent => false, :except => [:index, :autocomplete_base_project]
load_and_authorize_resource :instance_name => :pull, :through => :issue, :singleton => true, :except => [:index, :autocomplete_base_project]