]> source.dussan.org Git - nextcloud-server.git/commitdiff
make the sharing app return the corrrect result for is_writable on the shared folder
authorRobin Appelman <icewind1991@gmail.com>
Fri, 16 Dec 2011 16:31:31 +0000 (17:31 +0100)
committerRobin Appelman <icewind1991@gmail.com>
Fri, 16 Dec 2011 16:31:31 +0000 (17:31 +0100)
apps/files_sharing/sharedstorage.php

index faf4e68d9b12e3270407049bbbac0e977cf3e7c6..d78e273bf3804252717824f2362383808ad9bb30 100644 (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;