summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-06-19 17:45:04 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-06-19 17:45:04 +0000
commit921b425b8e5e4b4e94a40431028188e479d8b9e0 (patch)
tree9bacd03dd2ce1c766e99ac0f920aa48ec6c47869
parentd635fff3f5402681fa612f1c1d8eaeef0ff7140c (diff)
downloadredmine-921b425b8e5e4b4e94a40431028188e479d8b9e0.tar.gz
redmine-921b425b8e5e4b4e94a40431028188e479d8b9e0.zip
Accept key authentication to ProjectsController#index (for feeds). #5317
Contributed by Greg Mefford git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3777 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/controllers/projects_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index e7c123ab7..44071d214 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -27,7 +27,7 @@ class ProjectsController < ApplicationController
before_filter :authorize, :except => [ :index, :list, :add, :copy, :archive, :unarchive, :destroy, :activity ]
before_filter :authorize_global, :only => :add
before_filter :require_admin, :only => [ :copy, :archive, :unarchive, :destroy ]
- accept_key_auth :activity
+ accept_key_auth :activity, :index
after_filter :only => [:add, :edit, :archive, :unarchive, :destroy] do |controller|
if controller.request.post?