Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Gapczynski <GapczynskiM@gmail.com>2012-01-02 04:59:24 +0400
committerMichael Gapczynski <GapczynskiM@gmail.com>2012-01-02 04:59:24 +0400
commit4374d55e5e020a1f2673a18991be6f2560e9f2c3 (patch)
tree325ff4909a6592b27280ca6e7b213c27039711e8 /lib/filestorage
parent470bab9c682fdbe4dcb331f2f6a00b3a9aefc929 (diff)
Correct local permissions checks
Diffstat (limited to 'lib/filestorage')
-rw-r--r--lib/filestorage/local.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/filestorage/local.php b/lib/filestorage/local.php
index 02746fa6c6f..cfc27159786 100644
--- a/lib/filestorage/local.php
+++ b/lib/filestorage/local.php
@@ -50,10 +50,10 @@ class OC_Filestorage_Local extends OC_Filestorage{
}
}
public function is_readable($path){
- return true;
+ return is_readable($this->datadir.$path);
}
public function is_writeable($path){
- return true;
+ return is_writable($this->datadir.$path);
}
public function file_exists($path){
return file_exists($this->datadir.$path);