Primitive access for private pages
This commit is contained in:
parent
fd5c50c662
commit
a261fd1035
@ -1,7 +1,7 @@
|
|||||||
# TODO: Implement access control for pages
|
# TODO: Implement access control for pages
|
||||||
|
|
||||||
def read_page(request, rel_path):
|
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):
|
def write_page(request, rel_path):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user