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
This commit is contained in:
parent
a1119624c0
commit
a1d156d794
|
@ -21,6 +21,7 @@ class RolesController < ApplicationController
|
||||||
before_filter :require_admin, :except => [:index, :show]
|
before_filter :require_admin, :except => [:index, :show]
|
||||||
before_filter :require_admin_or_api_request, :only => [:index, :show]
|
before_filter :require_admin_or_api_request, :only => [:index, :show]
|
||||||
before_filter :find_role, :only => [:show, :edit, :update, :destroy]
|
before_filter :find_role, :only => [:show, :edit, :update, :destroy]
|
||||||
|
accept_api_auth :index, :show
|
||||||
|
|
||||||
def index
|
def index
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
|
|
Loading…
Reference in New Issue