fix(run_server.py) 修改一个常规错误,函数参数个数

已fix
pull/108/head
ibuler 2016-03-01 17:01:11 +08:00
parent 06aef8fb1a
commit fd19bb6299
1 changed files with 1 additions and 1 deletions

View File

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