mirror of https://github.com/jumpserver/jumpserver
Merge pull request #108 from jumpserver/bug_fix_guang
fix(run_server.py) 修改一个常规错误,函数参数个数pull/109/head
commit
1437140f87
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue