Browse Source

Primitive access for private pages

master
Dirk Alders 3 months ago
parent
commit
a261fd1035
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      pages/access.py

+ 1
- 1
pages/access.py View File

1
 # TODO: Implement access control for pages
1
 # TODO: Implement access control for pages
2
 
2
 
3
 def read_page(request, rel_path):
3
 def read_page(request, rel_path):
4
-    return True
4
+    return "private" not in rel_path or write_page(request, rel_path)
5
 
5
 
6
 
6
 
7
 def write_page(request, rel_path):
7
 def write_page(request, rel_path):

Loading…
Cancel
Save