function uc_file_user_access in Ubercart 6.2
Same name and namespace in other branches
- 7.3 uc_file/uc_file.module \uc_file_user_access()
Access callback for a user's list of purchased file downloads.
1 string reference to 'uc_file_user_access'
- uc_file_menu in uc_file/
uc_file.module - Implements hook_menu().
File
- uc_file/
uc_file.module, line 89
Code
function uc_file_user_access($account) {
global $user;
return $user->uid && (user_access('view all downloads') || $user->uid == $account->uid);
}