diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-12-16 17:31:31 +0100 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-12-16 17:31:31 +0100 |
commit | 65214bed0c1c6058a1178b1501bf4f227ec471dc (patch) | |
tree | ae65a84b6162dfce3795bca0cb003f2e251ccf1d /apps/files_sharing | |
parent | a862fec9a329c449b808e8d888764cbc9cc0bc19 (diff) | |
download | nextcloud-server-65214bed0c1c6058a1178b1501bf4f227ec471dc.tar.gz nextcloud-server-65214bed0c1c6058a1178b1501bf4f227ec471dc.zip |
make the sharing app return the corrrect result for is_writable on the shared folder
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/sharedstorage.php | 4 |
1 files changed, 3 insertions, 1 deletions
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; |