uid == 1) return TRUE; if ($account->uid == $user->uid && tinybrowser_access($user)) { $profile = tinybrowser_get_user_profile($user); if ($profile['permissions']['userpage']) { return TRUE; } } return FALSE; // return $user->uid == 1 || ($account->uid == $user->uid && tinybrowser_access($user)); } /** * Contents of user account page */ function tinybrowser_user_page($account) { drupal_add_js(drupal_get_path('module', 'tinybrowser') .'/tinybrowser/tb_standalone.js.php'); $content = '

'; $content .= '

'; $content .= t('Please use the link below to browse files') . '
'; $content .= ''; $content .= '
'; $content .= '

'; return $content; }