Skip to content
Snippets Groups Projects
Commit c275e86e authored by Martin Mareš's avatar Martin Mareš
Browse files

Hotfix /doc/ s nepřihlášeným uživatelem

parent 91fa837e
No related branches found
No related tags found
No related merge requests found
......@@ -189,7 +189,7 @@ def init_request():
if user.is_org or user.is_admin:
return redirect(url_for('org_index'))
elif path.startswith('/doc/'):
if user.is_org or user.is_admin:
if user and user.is_org or user.is_admin:
g.gatekeeper = mo.rights.Gatekeeper(user)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment