summaryrefslogtreecommitdiffstats
path: root/lib/files.php
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2012-06-04 11:04:05 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2012-06-04 11:04:05 +0200
commit4eba41a2a04d119b4d73f62f32daaa2f707cd1d9 (patch)
tree150efd266a2ee181189fdc2e42007f62e12332f9 /lib/files.php
parent2d80c148ba8c1e83508a4c9e7318fa388740c9ff (diff)
downloadnextcloud-server-4eba41a2a04d119b4d73f62f32daaa2f707cd1d9.tar.gz
nextcloud-server-4eba41a2a04d119b4d73f62f32daaa2f707cd1d9.zip
no move (rename) operation for "Shared" directory
Diffstat (limited to 'lib/files.php')
-rw-r--r--lib/files.php2
1 files changed, 1 insertions, 1 deletions
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);