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) { tinybrowser_set_js_variables(); drupal_add_js(drupal_get_path('module', 'tinybrowser') .'/tinybrowser/tb_standalone.js'); // Open TinyBroser inside of an iframe 'tbframe' // $win_height = tinybrowser_get_window_height(); $content = '

'; $content .= '

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