Merge pull request #108 from jumpserver/bug_fix_guang

fix(run_server.py) 修改一个常规错误,函数参数个数
pull/109/head
ibuler 2016-03-01 17:03:33 +08:00
commit 1437140f87
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ def require_auth(role='user'):
request.user = user
if role == 'admin':
if user.role in ['SU', 'GA']:
request_finished.send_robust()
request_finished.send_robust(func)
return func(request, *args, **kwargs)
logger.debug('Websocket: user [ %s ] is not admin.' % user.username)
else: