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 | |
parent | 6d6449f6e74455c7df08eb8e7cbca8ad426b3386 (diff) | |
download | web-c7e25ef1937f0b584393c6fc84b0ceb2503834f9.tar.gz web-c7e25ef1937f0b584393c6fc84b0ceb2503834f9.tar.bz2 web-c7e25ef1937f0b584393c6fc84b0ceb2503834f9.zip |
login: Add missing parentheses
Diffstat (limited to 'accounts/views')
-rw-r--r-- | accounts/views/admin/__init__.py | 2 | ||||
-rw-r--r-- | accounts/views/login/__init__.py | 2 |
2 files changed, 2 insertions, 2 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.') diff --git a/accounts/views/login/__init__.py b/accounts/views/login/__init__.py index 4546b14..18dc070 100644 --- a/accounts/views/login/__init__.py +++ b/accounts/views/login/__init__.py @@ -13,7 +13,7 @@ bp = Blueprint('login', __name__) @bp.route('/login', methods=['GET', 'POST']) def login(): - if current_user.is_authenticated: + if current_user.is_authenticated(): return redirect(url_for('default.index')) form = LoginForm(request.form) |