You are here

function _filebrowser_can_download_file in Filebrowser 7.4

Same name and namespace in other branches
  1. 8 filebrowser.common.inc \_filebrowser_can_download_file()
  2. 6.2 includes/node.inc \_filebrowser_can_download_file()
  3. 7.2 filebrowser.common.inc \_filebrowser_can_download_file()
  4. 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 661
Misc filebrowser common functions.

Code

function _filebrowser_can_download_file(&$node) {
  return node_access('view', $node) && user_access(FILEBROWSER_DOWNLOAD);
}