function webfm_file_mod_access in Web File Manager 5
Helper function to determine if a webfm_file record is modifiable by a user with 'access webfm'
4 calls to webfm_file_mod_access()
- webfm_ajax in ./
webfm.module - Ajax post requests
- webfm_putmeta in ./
webfm.module - webfm_rename in ./
webfm_file.inc - webfm_rename -called from the ajax action - switch case 'rename':
- webfm_send_file in ./
webfm.module - webfm_send_file - streams a file privately for download
File
- ./
webfm.module, line 1995
Code
function webfm_file_mod_access($webfm_file) {
if ((int) $webfm_file->perm & WEBFM_FILE_ACCESS_ROLE_FULL) {
return webfm_path_access($webfm_file->fpath);
}
return FALSE;
}