From dcbefc33ae1c712775442f1b2415d68d59c61278 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 23 Aug 2016 14:57:11 +0200 Subject: [PATCH] Revert an oops in f3bf380bb7fa66b63010e3f6b3b477a8943479e7 --- pillar/web/system_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pillar/web/system_util.py b/pillar/web/system_util.py index 990640a4..f0e0747b 100644 --- a/pillar/web/system_util.py +++ b/pillar/web/system_util.py @@ -37,7 +37,7 @@ def pillar_server_endpoint_static(): def pillar_api(token=None): # Check if current_user is initialized (in order to support manage.py # scripts and non authenticated server requests). - if token is None and current_user and current_user.is_authenticated(): + if token is None and current_user and current_user.is_authenticated: token = current_user.id api = FlaskInternalApi(