diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-11-30 07:48:47 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-11-30 07:48:47 +0000 |
commit | a1d156d79448c41bdb8dd52439556ffb7f2d6dab (patch) | |
tree | e77fc5fa349729c1357a4af3271506ff530c043e | |
parent | a1119624c03de180c1cf38289e0a16017ecff63b (diff) | |
download | redmine-a1d156d79448c41bdb8dd52439556ffb7f2d6dab.tar.gz redmine-a1d156d79448c41bdb8dd52439556ffb7f2d6dab.zip |
Fixed that roles API should accept API auth for when authentication is required (#12472).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10893 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/controllers/roles_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/roles_controller.rb b/app/controllers/roles_controller.rb index 29e7604dc..72c9c70bf 100644 --- a/app/controllers/roles_controller.rb +++ b/app/controllers/roles_controller.rb @@ -21,6 +21,7 @@ class RolesController < ApplicationController before_filter :require_admin, :except => [:index, :show] before_filter :require_admin_or_api_request, :only => [:index, :show] before_filter :find_role, :only => [:show, :edit, :update, :destroy] + accept_api_auth :index, :show def index respond_to do |format| |