Fixed user search.

This commit is contained in:
Martin Edenhofer 2016-08-13 00:40:46 +02:00
parent 5586abfbed
commit 46aeca2bdc

View file

@ -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