#907: "skip_before_filter authenticate_user!" for #tags and #branche

This commit is contained in:
Vokhmin Alexey V 2013-02-13 15:42:24 +04:00
parent f97fb4c4a5
commit 2a3fb08a89
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# -*- encoding : utf-8 -*-
class Projects::Git::BaseController < Projects::BaseController
before_filter :authenticate_user!
skip_before_filter :authenticate_user!, :only => [:show, :index, :blame, :raw, :archive, :diff] if APP_CONFIG['anonymous_access']
skip_before_filter :authenticate_user!, :only => [:show, :index, :blame, :raw, :archive, :diff, :tags, :branches] if APP_CONFIG['anonymous_access']
load_and_authorize_resource :project
before_filter :set_treeish_and_path