Correct local permissions checks

This commit is contained in:
Michael Gapczynski 2012-01-01 19:59:24 -05:00
Родитель 470bab9c68
Коммит 4374d55e5e
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -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);

Просмотреть файл

@ -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=='/'){