function _file_download_deny in Ubercart 5
Deny a file download
Parameters
$uid: The user id of the person attempting the download
$message: The optional message to send to the user
1 call to _file_download_deny()
- _file_download in uc_file/uc_file.module 
- Perform first-pass authorization. Call authorization hooks afterwards.
File
- uc_file/uc_file.module, line 1100 
- Allows products to be associated with downloadable files.
Code
function _file_download_deny($uid = NULL, $message = NULL) {
  if (!is_null($message)) {
    drupal_set_message($message, 'error');
  }
  if (is_null($uid) || $uid == 0) {
    drupal_access_denied();
    exit;
  }
  else {
    drupal_goto('user/' . $uid . '/files');
  }
}