chmod key in conflict with FTP driver

This commit is contained in:
David Bartle
2015-06-01 10:18:22 -07:00
committed by nao-pon
parent 6d93c7ac64
commit 77403c68a0
2 changed files with 2 additions and 11 deletions
+1 -10
View File
@@ -127,8 +127,7 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
'read' => false,
'write' => false,
'locked' => true,
'hidden' => true,
'chmod' => false
'hidden' => true
);
}
}
@@ -335,7 +334,6 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
$stat['mime'] = 'symlink-broken';
$stat['read'] = false;
$stat['write'] = false;
$stat['chmod'] = 0;
$stat['size'] = 0;
return $stat;
}
@@ -369,13 +367,6 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
$stat['read'] = is_readable($path)? null : false;
$stat['write'] = is_writable($path)? null : false;
if( function_exists('posix_geteuid') && posix_geteuid() == $uid ) {
$stat['chmod'] = 1;
}
else {
$stat['chmod'] = 0;
}
if (is_null($stat['read'])) {
$stat['size'] = $dir ? 0 : $size;
}