Add access check to PROPFIND

This commit is contained in:
Unrud 2016-08-08 06:59:15 +02:00
parent 9f2cbb81a3
commit f294b1cf17

View File

@ -509,6 +509,8 @@ class Application:
def do_PROPFIND(self, environ, path, content, user):
"""Manage PROPFIND request."""
if not self._access(user, path, "r"):
return NOT_ALLOWED
with self._lock_collection("r", user):
items = self.Collection.discover(
path, environ.get("HTTP_DEPTH", "0"))