mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
Add access check to PROPFIND
This commit is contained in:
parent
9f2cbb81a3
commit
f294b1cf17
1 changed files with 2 additions and 0 deletions
|
@ -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"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue