From 40c8b3d03886e18d1ff9422371daaea90ab11293 Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Sun, 29 Sep 2024 17:44:21 +0200 Subject: [PATCH] log in case delete of collection is prevented --- radicale/app/delete.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/radicale/app/delete.py b/radicale/app/delete.py index 52c8e060..9c595da6 100644 --- a/radicale/app/delete.py +++ b/radicale/app/delete.py @@ -25,6 +25,7 @@ from typing import Optional from radicale import httputils, storage, types, xmlutils from radicale.app.base import Access, ApplicationBase from radicale.hook import HookNotificationItem, HookNotificationItemTypes +from radicale.log import logger def xml_delete(base_prefix: str, path: str, collection: storage.BaseCollection, @@ -82,6 +83,7 @@ class ApplicationPartDelete(ApplicationBase): ) xml_answer = xml_delete(base_prefix, path, item) else: + logger.info("delete of collection is prevented by config/option [rights] permit_delete_collection: %s", path) return httputils.NOT_ALLOWED else: assert item.collection is not None