Fix usage of is_anonymous as a method for new version of flask-login
This commit is contained in:
parent
49b1a329a8
commit
0675ad9c85
|
@ -145,7 +145,7 @@ def _partials(imports, sha='HEAD'):
|
||||||
|
|
||||||
@blueprint.route("/_partials")
|
@blueprint.route("/_partials")
|
||||||
def 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 current_app.login_manager.unauthorized()
|
||||||
return {'partials': _partials(request.args.getlist('imports[]'))}
|
return {'partials': _partials(request.args.getlist('imports[]'))}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue