From f3c7439c8615f5c3f7a1aa487d9ac4253e0ad96f Mon Sep 17 00:00:00 2001
From: Martin Mares <mj@ucw.cz>
Date: Mon, 16 Oct 2023 22:55:49 +0200
Subject: [PATCH] Hotfix hotfixu :-\
---
mo/web/__init__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mo/web/__init__.py b/mo/web/__init__.py
index 5fcc1710..5fc4c171 100644
--- a/mo/web/__init__.py
+++ b/mo/web/__init__.py
@@ -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 and user.is_org or user.is_admin:
+ if user and (user.is_org or user.is_admin):
g.gatekeeper = mo.rights.Gatekeeper(user)
--
GitLab