make the sharing app return the corrrect result for is_writable on the shared folder

This commit is contained in:
Robin Appelman 2011-12-16 17:31:31 +01:00
parent a862fec9a3
commit 65214bed0c
1 changed files with 3 additions and 1 deletions

View File

@ -285,7 +285,9 @@ class OC_Filestorage_Shared extends OC_Filestorage {
}
public function is_writeable($path) {
if ($path == "" || $path == "/" || OC_Share::getPermissions($this->datadir.$path) & OC_Share::WRITE) {
if($path == "" || $path == "/"){
return false;
}elseif (OC_Share::getPermissions($this->datadir.$path) & OC_Share::WRITE) {
return true;
} else {
return false;