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

This commit is contained in:
Chase Sterling 2016-09-06 00:08:58 -04:00 committed by Stephane Martin
parent 49b1a329a8
commit 0675ad9c85

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[]'))}