2022-09-29 01:16:45 +00:00
|
|
|
diff --git a/radicale/app/propfind.py b/radicale/app/propfind.py
|
|
|
|
index 52d0b00..ee7cf28 100644
|
|
|
|
--- a/radicale/app/propfind.py
|
|
|
|
+++ b/radicale/app/propfind.py
|
|
|
|
@@ -350,8 +350,8 @@ class ApplicationPartPropfind(ApplicationBase):
|
2022-09-26 18:32:55 +00:00
|
|
|
permission = "r"
|
|
|
|
status = "read"
|
|
|
|
else:
|
|
|
|
- permission = ""
|
|
|
|
- status = "NO"
|
|
|
|
+ permission = "r"
|
|
|
|
+ status = "read"
|
|
|
|
logger.debug(
|
|
|
|
"%s has %s access to %s",
|
|
|
|
repr(user) if user else "anonymous user", status, target)
|
2022-09-29 01:16:45 +00:00
|
|
|
@@ -362,8 +362,8 @@ class ApplicationPartPropfind(ApplicationBase):
|
2022-09-26 18:32:55 +00:00
|
|
|
path: str, user: str) -> types.WSGIResponse:
|
|
|
|
"""Manage PROPFIND request."""
|
|
|
|
access = Access(self._rights, user, path)
|
|
|
|
- if not access.check("r"):
|
|
|
|
- return httputils.NOT_ALLOWED
|
|
|
|
+ #if not access.check("r"):
|
|
|
|
+ # return httputils.NOT_ALLOWED
|
|
|
|
try:
|
|
|
|
xml_content = self._read_xml_request_body(environ)
|
|
|
|
except RuntimeError as e:
|
2022-09-29 01:16:45 +00:00
|
|
|
@@ -380,8 +380,8 @@ class ApplicationPartPropfind(ApplicationBase):
|
2022-09-26 18:32:55 +00:00
|
|
|
item = next(items_iter, None)
|
|
|
|
if not item:
|
|
|
|
return httputils.NOT_FOUND
|
|
|
|
- if not access.check("r", item):
|
|
|
|
- return httputils.NOT_ALLOWED
|
|
|
|
+ #if not access.check("r", item):
|
|
|
|
+ # return httputils.NOT_ALLOWED
|
|
|
|
# put item back
|
|
|
|
items_iter = itertools.chain([item], items_iter)
|
|
|
|
allowed_items = self._collect_allowed_items(items_iter, user)
|