flask 0.11 compatibility
This commit is contained in:
parent
328f41b85c
commit
9ac015b3dd
5 changed files with 13 additions and 13 deletions
|
@ -11,7 +11,7 @@ blueprint = Blueprint('search', __name__, template_folder='templates')
|
|||
|
||||
@blueprint.route('/_search')
|
||||
def search():
|
||||
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()
|
||||
|
||||
results = search_engine.wiki(request.args.get('q'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue