From: Robin Appelman Date: Fri, 16 Dec 2011 16:31:31 +0000 (+0100) Subject: make the sharing app return the corrrect result for is_writable on the shared folder X-Git-Tag: v3.0~79^2~21 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=65214bed0c1c6058a1178b1501bf4f227ec471dc;p=nextcloud-server.git make the sharing app return the corrrect result for is_writable on the shared folder --- diff --git a/apps/files_sharing/sharedstorage.php b/apps/files_sharing/sharedstorage.php index faf4e68d9b1..d78e273bf38 100644 --- a/apps/files_sharing/sharedstorage.php +++ b/apps/files_sharing/sharedstorage.php @@ -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;