From a1d156d79448c41bdb8dd52439556ffb7f2d6dab Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 30 Nov 2012 07:48:47 +0000 Subject: [PATCH] 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 --- app/controllers/roles_controller.rb | 1 + 1 file changed, 1 insertion(+) 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| -- 2.39.5