Skip to content

Commit

Permalink
dummy commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dio-el-claire committed Mar 11, 2012
1 parent 39b0847 commit 63e84c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions php/connector.minimal.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
*
* @param string $attr attribute name (read|write|locked|hidden)
* @param string $path file path relative to volume root directory started with directory separator
* @return bool
* @return bool|null
**/
function access($attr, $path, $data, $volume) {
return strpos(basename($path), '.') === 0 // if file/folder begins with '.' (dot)
? !($attr == 'read' || $attr == 'write') // set read+write to false, other (locked+hidden) set to true
: ($attr == 'read' || $attr == 'write'); // else set read+write to true, locked+hidden to false
: null; // else elFinder decide it itself
}

$opts = array(
Expand Down

0 comments on commit 63e84c5

Please sign in to comment.