0001-As-a-non-admin-user-using-API-I-want-to-be-able-to-f.patch

David Côté-Tremblay, 2016-10-11 20:55

Download (979 Bytes)

View differences:

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

  
25
-