function webfm_file_view_access in Web File Manager 5
Helper function to determine if a webfm_file record is viewable by a user with 'access webfm'
3 calls to webfm_file_view_access()
- webfm_ajax in ./
webfm.module  - Ajax post requests
 - webfm_searchFiles::searchFilesRecur in ./
webfm.module  - webfm_send_file in ./
webfm.module  - webfm_send_file - streams a file privately for download
 
File
- ./
webfm.module, line 2006  
Code
function webfm_file_view_access($webfm_file) {
  if ((int) $webfm_file->perm & WEBFM_FILE_ACCESS_ROLE_VIEW) {
    return webfm_path_access($webfm_file->fpath);
  }
  return FALSE;
}