Fixed user search.
This commit is contained in:
parent
5586abfbed
commit
46aeca2bdc
1 changed files with 1 additions and 1 deletions
|
@ -321,7 +321,7 @@ class UsersController < ApplicationController
|
|||
# @response_message 401 Invalid session.
|
||||
def search
|
||||
|
||||
if !current_user.permissions('ticket.agent') && !current_user.permissions('admin.user')
|
||||
if !current_user.permissions?('ticket.agent') && !current_user.permissions?('admin.user')
|
||||
response_access_deny
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue