Piki is a minimal wiki
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516
  1. # TODO: Implement access control for pages
  2. def read_page(request, rel_path):
  3. return True
  4. def write_page(request, rel_path):
  5. return request.user.is_authenticated and request.user.username in ['root', 'dirk']
  6. def read_attachment(request, rel_path):
  7. return read_page(request, rel_path)
  8. def modify_attachment(request, rel_path):
  9. return write_page(request, rel_path)