mirror of
https://github.com/Kozea/Radicale.git
synced 2025-07-02 16:58:30 +00:00
Don't allow RADICALE:getcontentcount prop for collections
Tests should pass now
This commit is contained in:
parent
5ec9aaec07
commit
ee2fc74bc0
1 changed files with 1 additions and 1 deletions
|
@ -274,7 +274,7 @@ def xml_propfind_response(
|
|||
is404 = True
|
||||
elif tag == xmlutils.make_clark("RADICALE:getcontentcount"):
|
||||
# Only for internal use by the web interface
|
||||
if is_collection or is_leaf:
|
||||
if not is_collection or is_leaf:
|
||||
element.text = str(sum(1 for entry in item.get_all()))
|
||||
else:
|
||||
is404 = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue