Add access check to PROPFIND
This commit is contained in:
parent
9f2cbb81a3
commit
f294b1cf17
@ -509,6 +509,8 @@ class Application:
|
|||||||
|
|
||||||
def do_PROPFIND(self, environ, path, content, user):
|
def do_PROPFIND(self, environ, path, content, user):
|
||||||
"""Manage PROPFIND request."""
|
"""Manage PROPFIND request."""
|
||||||
|
if not self._access(user, path, "r"):
|
||||||
|
return NOT_ALLOWED
|
||||||
with self._lock_collection("r", user):
|
with self._lock_collection("r", user):
|
||||||
items = self.Collection.discover(
|
items = self.Collection.discover(
|
||||||
path, environ.get("HTTP_DEPTH", "0"))
|
path, environ.get("HTTP_DEPTH", "0"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user