From cc585eaaa09f17ca6d2ecb0ee9956093a5aed0a4 Mon Sep 17 00:00:00 2001 From: Dirk Alders Date: Sat, 26 Oct 2024 22:08:57 +0200 Subject: [PATCH] Fix: View right for non existing startpage --- pages/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/views.py b/pages/views.py index 57779b1..9d5103c 100644 --- a/pages/views.py +++ b/pages/views.py @@ -53,7 +53,7 @@ def page(request, rel_path): title = rel_path.split("/")[-1] # acc = access_control(request, rel_path) - if acc.may_read(): + if acc.may_read() or (p is None and rel_path == config.STARTPAGE): if p is None or p.deleted: if rel_path == config.STARTPAGE: page_content = mycreole.render_simple(SUCCESS_PAGE)