Ver código fonte

Fix: View right for non existing startpage

master
Dirk Alders 1 mês atrás
pai
commit
cc585eaaa0
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      pages/views.py

+ 1
- 1
pages/views.py Ver arquivo

@@ -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)

Carregando…
Cancelar
Salvar