Fix: View right for non existing startpage

This commit is contained in:
Dirk Alders 2024-10-26 22:08:57 +02:00
parent ac1b22953b
commit cc585eaaa0

View File

@ -53,7 +53,7 @@ def page(request, rel_path):
title = rel_path.split("/")[-1] title = rel_path.split("/")[-1]
# #
acc = access_control(request, rel_path) 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 p is None or p.deleted:
if rel_path == config.STARTPAGE: if rel_path == config.STARTPAGE:
page_content = mycreole.render_simple(SUCCESS_PAGE) page_content = mycreole.render_simple(SUCCESS_PAGE)