瀏覽代碼

Fix: View right for non existing startpage

master
Dirk Alders 1 月之前
父節點
當前提交
cc585eaaa0
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      pages/views.py

+ 1
- 1
pages/views.py 查看文件

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

Loading…
取消
儲存