Browse Source

Fix usage of is_anonymous as a method for new version of flask-login

master
Chase Sterling Stephane Martin 7 years ago
parent
commit
0675ad9c85
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      realms/modules/wiki/views.py

+ 1
- 1
realms/modules/wiki/views.py View File

@@ -145,7 +145,7 @@ def _partials(imports, sha='HEAD'):

@blueprint.route("/_partials")
def partials():
if current_app.config.get('PRIVATE_WIKI') and current_user.is_anonymous():
if current_app.config.get('PRIVATE_WIKI') and current_user.is_anonymous:
return current_app.login_manager.unauthorized()
return {'partials': _partials(request.args.getlist('imports[]'))}



Loading…
Cancel
Save