You are here

function _filebrowser_can_view_file in Filebrowser 7.4

Same name and namespace in other branches
  1. 8 filebrowser.common.inc \_filebrowser_can_view_file()
  2. 6.2 includes/node.inc \_filebrowser_can_view_file()
  3. 7.2 filebrowser.common.inc \_filebrowser_can_view_file()
  4. 7.3 filebrowser.common.inc \_filebrowser_can_view_file()

Check if user can view a specific file.

1 call to _filebrowser_can_view_file()
_filebrowser_load_files in ./filebrowser.common.inc

File

./filebrowser.common.inc, line 668
Misc filebrowser common functions.

Code

function _filebrowser_can_view_file(&$node, $file) {
  return trim($node->folder_rights->filtered_files) == '' || _filebrowser_match_path($file, $node->folder_rights->filtered_files);
}