From a261fd1035ad394de431d9922fd8ac825b4d5f92 Mon Sep 17 00:00:00 2001 From: Dirk Alders Date: Mon, 7 Oct 2024 22:01:01 +0200 Subject: [PATCH] Primitive access for private pages --- pages/access.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/access.py b/pages/access.py index f282bde..453e321 100644 --- a/pages/access.py +++ b/pages/access.py @@ -1,7 +1,7 @@ # TODO: Implement access control for pages def read_page(request, rel_path): - return True + return "private" not in rel_path or write_page(request, rel_path) def write_page(request, rel_path):