diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-09-18 22:08:10 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-09-18 22:08:10 +0200 |
commit | ea52b8088b6b0719d428de26c51e96a92cfb66bb (patch) | |
tree | d9ea9692c4bedb68e391cc63a7c784c400f4035d /pyaggr3g470r/views/api | |
parent | Removed the article from the table of the page of favorite articles when it i... (diff) | |
download | newspipe-ea52b8088b6b0719d428de26c51e96a92cfb66bb.tar.gz newspipe-ea52b8088b6b0719d428de26c51e96a92cfb66bb.tar.bz2 newspipe-ea52b8088b6b0719d428de26c51e96a92cfb66bb.zip |
With the new version of Flask-Login is_authenticated is now a property.
Diffstat (limited to 'pyaggr3g470r/views/api')
-rw-r--r-- | pyaggr3g470r/views/api/common.py | 2 |
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 |