self.render("docs/page.html", page=page, latest_revision=latest_revision)
+class FilesHandler(base.BaseHandler):
+ @tornado.web.authenticated
+ def get(self, path):
+ if path is None:
+ path = "/"
+
+ # Check permissions
+ if not self.backend.wiki.check_acl(path, self.current_user):
+ raise tornado.web.HTTPError(403, "Access to %s not allowed for %s" % (path, self.current_user))
+
+ files = self.backend.wiki.get_files(path)
+
+ self.render("docs/files/index.html", path=path, files=files)
+
+
class FileHandler(base.BaseHandler):
@property
def action(self):