Browse Source

List the aggregation of privileges instead of only "all"

Guillaume Ayoub 14 năm trước cách đây
mục cha
commit
505fd6a644
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      radicale/xmlutils.py

+ 4 - 0
radicale/xmlutils.py

@@ -262,6 +262,10 @@ def _propfind_response(path, item, props, user):
         elif tag == _tag("D", "current-user-privilege-set"):
             privilege = ET.Element(_tag("D", "privilege"))
             privilege.append(ET.Element(_tag("D", "all")))
+            privilege.append(ET.Element(_tag("D", "read")))
+            privilege.append(ET.Element(_tag("D", "write")))
+            privilege.append(ET.Element(_tag("D", "write-properties")))
+            privilege.append(ET.Element(_tag("D", "write-content")))
             element.append(privilege)
         elif tag == _tag("D", "supported-report-set"):
             for report_name in (