From fd19bb6299ee62c4c6268ae4cb2a58066009c12b Mon Sep 17 00:00:00 2001 From: ibuler Date: Tue, 1 Mar 2016 17:01:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(run=5Fserver.py)=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E5=B8=B8=E8=A7=84=E9=94=99=E8=AF=AF=EF=BC=8C?= =?UTF-8?q?=E5=87=BD=E6=95=B0=E5=8F=82=E6=95=B0=E4=B8=AA=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 已fix --- run_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_server.py b/run_server.py index 9fa8644a4..6c380e35f 100755 --- a/run_server.py +++ b/run_server.py @@ -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: