Skip to content
Snippets Groups Projects
Commit 7fbe3069 authored by Björn Schießle's avatar Björn Schießle
Browse files

no move (rename) operation for "Shared" directory

parent c8f670df
No related branches found
No related tags found
No related merge requests found
...@@ -170,7 +170,7 @@ class OC_Files { ...@@ -170,7 +170,7 @@ class OC_Files {
* @param file $target * @param file $target
*/ */
public static function move($sourceDir,$source,$targetDir,$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); $targetFile=self::normalizePath($targetDir.'/'.$target);
$sourceFile=self::normalizePath($sourceDir.'/'.$source); $sourceFile=self::normalizePath($sourceDir.'/'.$source);
return OC_Filesystem::rename($sourceFile,$targetFile); return OC_Filesystem::rename($sourceFile,$targetFile);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment