diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-07-09 08:56:07 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-07-09 08:56:07 +0000 |
commit | 93c2b92a4b5b7003be3113b5d9baf2a0448402a8 (patch) | |
tree | a6374caf6bcb9aebf9850003a7fc202055c1c390 /app/controllers/projects_controller.rb | |
parent | 01d34d65d9fe6df113f2145f5d5881a1e84c22e7 (diff) | |
download | redmine-93c2b92a4b5b7003be3113b5d9baf2a0448402a8.tar.gz redmine-93c2b92a4b5b7003be3113b5d9baf2a0448402a8.zip |
Separation of RSS/API auth actions.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6197 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r-- | app/controllers/projects_controller.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 8579d0a80..4b750dc0e 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -24,7 +24,8 @@ class ProjectsController < ApplicationController before_filter :authorize, :except => [ :index, :list, :new, :create, :copy, :archive, :unarchive, :destroy] before_filter :authorize_global, :only => [:new, :create] before_filter :require_admin, :only => [ :copy, :archive, :unarchive, :destroy ] - accept_key_auth :index, :show, :create, :update, :destroy + accept_rss_auth :index + accept_api_auth :index, :show, :create, :update, :destroy after_filter :only => [:create, :edit, :update, :archive, :unarchive, :destroy] do |controller| if controller.request.post? |