public function elFinderDrupalACL::fsAccessPrivate in elFinder file manager 8.2
File
- src/
Controller/ elFinderDrupalACL.php, line 44 - elfinder ACL class
Class
- elFinderDrupalACL
- @file elfinder ACL class
Namespace
Drupal\elfinder\ControllerCode
public function fsAccessPrivate($attr, $path, $data, $volume) {
$tmbdir = \Drupal::config('elfinder.settings')
->get('thumbnail.dirname');
if (strpos(basename($path), '.') === 0 && $attr == 'hidden') {
return TRUE;
}
/* Hiding thumbnail folder */
if (!empty($tmbdir) && strstr($path, DIRECTORY_SEPARATOR . $tmbdir) && $attr == 'hidden') {
return TRUE;
}
if (strstr($path, DIRECTORY_SEPARATOR . '.quarantine') && $attr == 'hidden') {
return TRUE;
}
if ($attr == 'read') {
return TRUE;
}
if ($attr == 'write') {
return TRUE;
}
return FALSE;
}