瀏覽代碼

Primitive access for private pages

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

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

@@ -1,7 +1,7 @@
1 1
 # TODO: Implement access control for pages
2 2
 
3 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 7
 def write_page(request, rel_path):

Loading…
取消
儲存