Conditions | 3 |
Paths | 4 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
40 | public static function access($attr, $path, $data, $volume, $isDir) |
||
41 | { |
||
42 | return strpos(basename($path), '.') === 0 // if file/folder begins with '.' (dot) |
||
43 | ? ! ($attr == 'read' || $attr == 'write') // set read+write to false, other (locked+hidden) set to true |
||
44 | : null; // else elFinder decide it itself |
||
45 | } |
||
46 | |||
62 |