From c21c3d230019431ab8f03faa3471474a66590c9c Mon Sep 17 00:00:00 2001 From: Vladimir Golovnev Date: Mon, 27 Feb 2023 09:09:33 +0300 Subject: [PATCH] WebAPI: Allow to set read-only directory as torrent location PR #18613. Closes #18480. --- src/webui/api/torrentscontroller.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/webui/api/torrentscontroller.cpp b/src/webui/api/torrentscontroller.cpp index 6ede337e5..6080febea 100644 --- a/src/webui/api/torrentscontroller.cpp +++ b/src/webui/api/torrentscontroller.cpp @@ -1099,10 +1099,6 @@ void TorrentsController::setLocationAction() if (!Utils::Fs::mkpath(newLocation)) throw APIError(APIErrorType::Conflict, tr("Cannot make save path")); - // check permissions - if (!Utils::Fs::isWritable(newLocation)) - throw APIError(APIErrorType::AccessDenied, tr("Cannot write to directory")); - applyToTorrents(hashes, [newLocation](BitTorrent::Torrent *const torrent) { LogMsg(tr("WebUI Set location: moving \"%1\", from \"%2\" to \"%3\"")