Procházet zdrojové kódy

List the aggregation of privileges instead of only "all"

Guillaume Ayoub před 14 roky
rodič
revize
505fd6a644
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  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 (