function imce_user_page_access in IMCE 6.2
Same name and namespace in other branches
- 6 imce.module \imce_user_page_access()
- 7 imce.module \imce_user_page_access()
Checks access to user/{$account->uid}/imce for the $user.
1 string reference to 'imce_user_page_access'
- imce_menu in ./
imce.module - Implementation of hook_menu().
File
- ./
imce.module, line 189 - Implements the necessary hooks for the file browser to work properly.
Code
function imce_user_page_access($account, $user = FALSE) {
if ($user === FALSE) {
global $user;
}
return ($user->uid == 1 || $account->uid == $user->uid) && ($profile = imce_user_profile($account)) && $profile['usertab'];
}