You are here

function imce_user_page_access in IMCE 7

Same name and namespace in other branches
  1. 6.2 imce.module \imce_user_page_access()
  2. 6 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
Implements hook_menu().

File

./imce.module, line 239
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'];
}