OSDN Git Service

Accept key authentication to ProjectsController#index (for feeds). #5317
authorEric Davis <edavis@littlestreamsoftware.com>
Sat, 19 Jun 2010 17:45:04 +0000 (17:45 +0000)
committerEric Davis <edavis@littlestreamsoftware.com>
Sat, 19 Jun 2010 17:45:04 +0000 (17:45 +0000)
Contributed by Greg Mefford

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3777 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/projects_controller.rb

index e7c123a..44071d2 100644 (file)
@@ -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?