diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2011-12-16 17:43:06 +0100 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2011-12-16 17:43:06 +0100 |
commit | f3e8776dc63656d99c39c007c230a80c0c9e384b (patch) | |
tree | b0debedaf5d4d65477083b40d117d2bb4142ed2b /apps | |
parent | feeb0c742a57eb542f6e904dd4c8b5310bcc066a (diff) | |
parent | dc641943d9245b371eca1928a64bcadfe72f9cf6 (diff) | |
download | nextcloud-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.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; |