summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2011-12-16 17:43:06 +0100
committerThomas Tanghus <thomas@tanghus.net>2011-12-16 17:43:06 +0100
commitf3e8776dc63656d99c39c007c230a80c0c9e384b (patch)
treeb0debedaf5d4d65477083b40d117d2bb4142ed2b /apps
parentfeeb0c742a57eb542f6e904dd4c8b5310bcc066a (diff)
parentdc641943d9245b371eca1928a64bcadfe72f9cf6 (diff)
downloadnextcloud-server-f3e8776dc63656d99c39c007c230a80c0c9e384b.tar.gz
nextcloud-server-f3e8776dc63656d99c39c007c230a80c0c9e384b.zip
Merge git://gitorious.org/owncloud/owncloud into tanghus_remote_backup
Diffstat (limited to 'apps')
-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;