summaryrefslogtreecommitdiffstats
path: root/apps/files/lib
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-11-27 11:47:26 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2019-12-02 15:28:49 +0100
commit08a1b928aa162921bd5adb7a52295659fc7fefe0 (patch)
tree1aa45e429a8880e2b6af930f74959c2cf8820440 /apps/files/lib
parent5274c5426818270460ce05ee0071aa9f189281e6 (diff)
downloadnextcloud-server-08a1b928aa162921bd5adb7a52295659fc7fefe0.tar.gz
nextcloud-server-08a1b928aa162921bd5adb7a52295659fc7fefe0.zip
Also allow transfer ownership of files
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/files/lib')
-rw-r--r--apps/files/lib/Service/OwnershipTransferService.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/lib/Service/OwnershipTransferService.php b/apps/files/lib/Service/OwnershipTransferService.php
index 0c5c25237b9..d664163041f 100644
--- a/apps/files/lib/Service/OwnershipTransferService.php
+++ b/apps/files/lib/Service/OwnershipTransferService.php
@@ -91,7 +91,7 @@ class OwnershipTransferService {
Filesystem::initMountPoints($destinationUid);
$view = new View();
- if (!$view->is_dir($sourcePath)) {
+ if (!($view->is_dir($sourcePath) || $view->is_file($sourcePath))) {
throw new TransferOwnershipException("Unknown path provided: $path", 1);
}