You are here

function imce_user_page_access in IMCE 6

Same name and namespace in other branches
  1. 6.2 imce.module \imce_user_page_access()
  2. 7 imce.module \imce_user_page_access()

Defines 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 179

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($user)) && $profile['usertab'];
}