diff options
author | Michael Gapczynski <GapczynskiM@gmail.com> | 2012-04-01 13:30:41 -0400 |
---|---|---|
committer | Michael Gapczynski <GapczynskiM@gmail.com> | 2012-04-01 13:30:41 -0400 |
commit | ff4b0c4d7f6b422c9426205897c015b497429b03 (patch) | |
tree | ad6331f2ac44972a3b5f930fee48ba5e10a73e33 /lib/filestorage | |
parent | cce59df2ae399bc43f1c11a3162b4855de70a1bc (diff) | |
download | nextcloud-server-ff4b0c4d7f6b422c9426205897c015b497429b03.tar.gz nextcloud-server-ff4b0c4d7f6b422c9426205897c015b497429b03.zip |
Move writable check into local filestorage so shared files can be renamed
Diffstat (limited to 'lib/filestorage')
-rw-r--r-- | lib/filestorage/local.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/filestorage/local.php b/lib/filestorage/local.php index 688501aee90..bd757f52ce7 100644 --- a/lib/filestorage/local.php +++ b/lib/filestorage/local.php @@ -86,6 +86,10 @@ class OC_Filestorage_Local extends OC_Filestorage{ return $this->delTree($path); } public function rename($path1,$path2){ + if (!$this->is_writable($path1)) { + OC_Log::write('core','unable to rename, file is not writable : '.$path1,OC_Log::ERROR); + return false; + } if(! $this->file_exists($path1)){ OC_Log::write('core','unable to rename, file does not exists : '.$path1,OC_Log::ERROR); return false; |