Browse Source

Fix: View right for non existing startpage

master
Dirk Alders 1 month ago
parent
commit
cc585eaaa0
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      pages/views.py

+ 1
- 1
pages/views.py View File

53
     title = rel_path.split("/")[-1]
53
     title = rel_path.split("/")[-1]
54
     #
54
     #
55
     acc = access_control(request, rel_path)
55
     acc = access_control(request, rel_path)
56
-    if acc.may_read():
56
+    if acc.may_read() or (p is None and rel_path == config.STARTPAGE):
57
         if p is None or p.deleted:
57
         if p is None or p.deleted:
58
             if rel_path == config.STARTPAGE:
58
             if rel_path == config.STARTPAGE:
59
                 page_content = mycreole.render_simple(SUCCESS_PAGE)
59
                 page_content = mycreole.render_simple(SUCCESS_PAGE)

Loading…
Cancel
Save