You are here

function tokenauth_profile_access in Token authentication 6

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

Access callback for tokenauth view/edit.

1 string reference to 'tokenauth_profile_access'
tokenauth_menu in ./tokenauth.module
Implementation of hook_menu().

File

./tokenauth.module, line 75

Code

function tokenauth_profile_access($account) {
  return (user_access('administer users') || $GLOBALS['user']->uid == $account->uid) && user_access('access tokenauth') && $account->uid > 0;
}