diff options
author | Alexander Sulfrian <alex@spline.inf.fu-berlin.de> | 2016-02-25 01:39:00 +0100 |
---|---|---|
committer | www-data <www-data@vm-accounts.spline.inf.fu-berlin.de> | 2016-02-27 00:39:58 +0100 |
commit | c7e25ef1937f0b584393c6fc84b0ceb2503834f9 (patch) | |
tree | 819b0911d2b35c65679d342a8c2dabdf826b3a6c /accounts/views/admin/__init__.py | |
parent | 6d6449f6e74455c7df08eb8e7cbca8ad426b3386 (diff) | |
download | web-c7e25ef1937f0b584393c6fc84b0ceb2503834f9.tar.gz web-c7e25ef1937f0b584393c6fc84b0ceb2503834f9.tar.bz2 web-c7e25ef1937f0b584393c6fc84b0ceb2503834f9.zip |
login: Add missing parentheses
Diffstat (limited to 'accounts/views/admin/__init__.py')
-rw-r--r-- | accounts/views/admin/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accounts/views/admin/__init__.py b/accounts/views/admin/__init__.py index 5c908a1..df5777d 100644 --- a/accounts/views/admin/__init__.py +++ b/accounts/views/admin/__init__.py @@ -16,7 +16,7 @@ bp = Blueprint('admin', __name__) @bp.before_request def restrict_bp_to_admins(): - if not current_user.is_authenticated: + if not current_user.is_authenticated(): return current_app.login_manager.unauthorized() if current_user.uid not in current_app.config.get('ADMIN_USERS', []): raise Forbidden(u'Du bist kein Admin.') |