Fix bug in is_writeable(), was passing the wrong path

This commit is contained in:
Michael Gapczynski 2011-07-06 15:28:50 -04:00
parent 732ad7f6c1
commit 2908145b94
1 changed files with 2 additions and 1 deletions

View File

@ -219,7 +219,8 @@ class OC_FILESTORAGE_SHARED extends OC_FILESTORAGE {
if ($path == "" || $path == "/") {
return true;
} else {
return OC_SHARE::isWriteable($path);
$target = OC_FILESYSTEM::getStorageMountPoint($this).$path;
return OC_SHARE::isWriteable($target);
}
}