aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views/api
diff options
context:
space:
mode:
Diffstat (limited to 'pyaggr3g470r/views/api')
-rw-r--r--pyaggr3g470r/views/api/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyaggr3g470r/views/api/common.py b/pyaggr3g470r/views/api/common.py
index acb5dd68..8083cb4c 100644
--- a/pyaggr3g470r/views/api/common.py
+++ b/pyaggr3g470r/views/api/common.py
@@ -45,7 +45,7 @@ def authenticate(func):
if not getattr(func, 'authenticated', True):
logged_in = True
# authentication based on the session (already logged on the site)
- elif 'email' in session or g.user.is_authenticated():
+ elif 'email' in session or g.user.is_authenticated:
logged_in = True
else:
# authentication via HTTP only
bgstack15