summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-12-16 17:31:31 +0100
committerRobin Appelman <icewind1991@gmail.com>2011-12-16 17:31:31 +0100
commit65214bed0c1c6058a1178b1501bf4f227ec471dc (patch)
treeae65a84b6162dfce3795bca0cb003f2e251ccf1d /apps/files_sharing
parenta862fec9a329c449b808e8d888764cbc9cc0bc19 (diff)
downloadnextcloud-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.php4
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;