Skip to content

Commit

Permalink
Don't allow RADICALE:getcontentcount prop for collections
Browse files Browse the repository at this point in the history
Tests should pass now
  • Loading branch information
MatthewHana committed Mar 12, 2024
1 parent 5ec9aae commit ee2fc74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radicale/app/propfind.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee2fc74

Please sign in to comment.