summaryrefslogtreecommitdiffstats
path: root/lib/filesystem.php
diff options
context:
space:
mode:
authorMichael Gapczynski <GapczynskiM@gmail.com>2012-01-01 19:59:24 -0500
committerMichael Gapczynski <GapczynskiM@gmail.com>2012-01-01 19:59:24 -0500
commit4374d55e5e020a1f2673a18991be6f2560e9f2c3 (patch)
tree325ff4909a6592b27280ca6e7b213c27039711e8 /lib/filesystem.php
parent470bab9c682fdbe4dcb331f2f6a00b3a9aefc929 (diff)
downloadnextcloud-server-4374d55e5e020a1f2673a18991be6f2560e9f2c3.tar.gz
nextcloud-server-4374d55e5e020a1f2673a18991be6f2560e9f2c3.zip
Correct local permissions checks
Diffstat (limited to 'lib/filesystem.php')
-rw-r--r--lib/filesystem.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/filesystem.php b/lib/filesystem.php
index 9b3dde1ae07..1205a6aa51b 100644
--- a/lib/filesystem.php
+++ b/lib/filesystem.php
@@ -245,7 +245,7 @@ class OC_Filesystem{
return false;
}
$storage=self::getStorage($path);
- return $storage->is_readable($path);
+ return $storage->is_readable(self::getInternalPath($path));
}
static public function is_writeable($path){
if(substr($path,0,1)!=='/'){
@@ -255,7 +255,7 @@ class OC_Filesystem{
return false;
}
$storage=self::getStorage($path);
- return $storage->is_writeable($path);
+ return $storage->is_writeable(self::getInternalPath($path));
}
static public function file_exists($path){
if($path=='/'){