summaryrefslogtreecommitdiffstats
path: root/lib/filesystemview.php
diff options
context:
space:
mode:
authorMichael Gapczynski <GapczynskiM@gmail.com>2012-04-01 13:30:41 -0400
committerMichael Gapczynski <GapczynskiM@gmail.com>2012-04-01 13:30:41 -0400
commitff4b0c4d7f6b422c9426205897c015b497429b03 (patch)
treead6331f2ac44972a3b5f930fee48ba5e10a73e33 /lib/filesystemview.php
parentcce59df2ae399bc43f1c11a3162b4855de70a1bc (diff)
downloadnextcloud-server-ff4b0c4d7f6b422c9426205897c015b497429b03.tar.gz
nextcloud-server-ff4b0c4d7f6b422c9426205897c015b497429b03.zip
Move writable check into local filestorage so shared files can be renamed
Diffstat (limited to 'lib/filesystemview.php')
-rw-r--r--lib/filesystemview.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/filesystemview.php b/lib/filesystemview.php
index a3736f1976c..9d530c7ad63 100644
--- a/lib/filesystemview.php
+++ b/lib/filesystemview.php
@@ -192,7 +192,7 @@ class OC_FilesystemView {
return $this->basicOperation('unlink',$path,array('delete'));
}
public function rename($path1,$path2){
- if(OC_FileProxy::runPreProxies('rename',$path1,$path2) and $this->is_writable($path1) and OC_Filesystem::isValidPath($path2)){
+ if(OC_FileProxy::runPreProxies('rename',$path1,$path2) and OC_Filesystem::isValidPath($path2)){
$run=true;
OC_Hook::emit( OC_Filesystem::CLASSNAME, OC_Filesystem::signal_rename, array( OC_Filesystem::signal_param_oldpath => $path1 , OC_Filesystem::signal_param_newpath=>$path2, OC_Filesystem::signal_param_run => &$run));
if($run){