mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-20 07:21:12 +00:00
use 'lambda' instead of '->{}' at UsersController
git-svn-id: http://svn.redmine.org/redmine/trunk@20657 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
6f17c33403
commit
783ade73d7
@ -22,7 +22,7 @@ class UsersController < ApplicationController
|
|||||||
self.main_menu = false
|
self.main_menu = false
|
||||||
|
|
||||||
before_action :require_admin, :except => :show
|
before_action :require_admin, :except => :show
|
||||||
before_action ->{find_user(false)}, :only => :show
|
before_action lambda {find_user(false)}, :only => :show
|
||||||
before_action :find_user, :only => [:edit, :update, :destroy]
|
before_action :find_user, :only => [:edit, :update, :destroy]
|
||||||
accept_api_auth :index, :show, :create, :update, :destroy
|
accept_api_auth :index, :show, :create, :update, :destroy
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user