Patch #24051 » 0001-As-a-non-admin-user-using-API-I-want-to-be-able-to-f.patch
app/controllers/users_controller.rb | ||
---|---|---|
18 | 18 |
class UsersController < ApplicationController |
19 | 19 |
layout 'admin' |
20 | 20 | |
21 |
before_action :require_admin, :except => :show
|
|
21 |
before_action :require_admin, :except => [:show, :index]
|
|
22 | 22 |
before_action :find_user, :only => [:show, :edit, :update, :destroy] |
23 | 23 |
accept_api_auth :index, :show, :create, :update, :destroy |
24 | 24 |