From: Bjoern Schiessle Date: Mon, 4 Jun 2012 09:04:05 +0000 (+0200) Subject: no move (rename) operation for "Shared" directory X-Git-Tag: v4.5.0beta1~74^2~424^2~41^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4eba41a2a04d119b4d73f62f32daaa2f707cd1d9;p=nextcloud-server.git no move (rename) operation for "Shared" directory --- diff --git a/lib/files.php b/lib/files.php index 1e88a7b608d..885f6977fbd 100644 --- a/lib/files.php +++ b/lib/files.php @@ -170,7 +170,7 @@ class OC_Files { * @param file $target */ public static function move($sourceDir,$source,$targetDir,$target){ - if(OC_User::isLoggedIn()){ + if(OC_User::isLoggedIn() && ($sourceDir != '' || $source != 'Shared')){ $targetFile=self::normalizePath($targetDir.'/'.$target); $sourceFile=self::normalizePath($sourceDir.'/'.$source); return OC_Filesystem::rename($sourceFile,$targetFile);