Skip to content

Commit

Permalink
alexanderjulo#61: fix an issue with private contents raising 500.
Browse files Browse the repository at this point in the history
  • Loading branch information
johniez committed Nov 19, 2016
1 parent d150a6c commit 571a649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wiki/web/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,6 @@ def protect(f):
@wraps(f)
def wrapper(*args, **kwargs):
if current_app.config.get('PRIVATE') and not current_user.is_authenticated():
return loginmanager.unauthorized()
return current_app.login_manager.unauthorized()
return f(*args, **kwargs)
return wrapper

0 comments on commit 571a649

Please sign in to comment.