You are here

function tokenauth_profile_access in Token authentication 7

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

Access callback for tokenauth view/edit.

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

File

./tokenauth.module, line 85

Code

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