mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-04 18:22:26 +00:00
Remove faulty check
This should have been (to_path.strip("/")+"/").startswith(path.strip("/")+"/"). But it's not required as we don't support moving collections.
This commit is contained in:
parent
9aefc500ec
commit
89ac2fb397
1 changed files with 0 additions and 2 deletions
|
@ -473,8 +473,6 @@ class Application:
|
||||||
to_path = storage.sanitize_path(to_url.path)
|
to_path = storage.sanitize_path(to_url.path)
|
||||||
if not self._access(user, to_path, "w"):
|
if not self._access(user, to_path, "w"):
|
||||||
return NOT_ALLOWED
|
return NOT_ALLOWED
|
||||||
if to_path.strip("/").startswith(path.strip("/")):
|
|
||||||
return client.CONFLICT, {}, None
|
|
||||||
|
|
||||||
with self._lock_collection("w", user):
|
with self._lock_collection("w", user):
|
||||||
item = next(self.Collection.discover(path), None)
|
item = next(self.Collection.discover(path), None)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue