Explorar el Código

Fix: View right for non existing startpage

master
Dirk Alders hace 1 mes
padre
commit
cc585eaaa0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      pages/views.py

+ 1
- 1
pages/views.py Ver fichero

@@ -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…
Cancelar
Guardar