From 65214bed0c1c6058a1178b1501bf4f227ec471dc Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 16 Dec 2011 17:31:31 +0100 Subject: [PATCH] make the sharing app return the corrrect result for is_writable on the shared folder --- apps/files_sharing/sharedstorage.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/files_sharing/sharedstorage.php b/apps/files_sharing/sharedstorage.php index faf4e68d9b..d78e273bf3 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;