function _filebrowser_can_download_file in Filebrowser 8
Same name and namespace in other branches
- 6.2 includes/node.inc \_filebrowser_can_download_file()
- 7.4 filebrowser.common.inc \_filebrowser_can_download_file()
- 7.2 filebrowser.common.inc \_filebrowser_can_download_file()
- 7.3 filebrowser.common.inc \_filebrowser_can_download_file()
Check if user can download files.
1 call to _filebrowser_can_download_file()
- filebrowser_page_download in ./
filebrowser.pages.inc - Callback for filebrowser_download/%node menu.
File
- ./
filebrowser.common.inc, line 573 - Misc filebrowser common functions.
Code
function _filebrowser_can_download_file(&$node) {
return node_access('view', $node) && user_access(FILEBROWSER_DOWNLOAD);
}