You are here

function gauth_user_auth_services_access in Google Auth 7

Same name and namespace in other branches
  1. 7.2 gauth_user/gauth_user.module \gauth_user_auth_services_access()

Function returns the access true if the account is owned by the user viewing else false.

1 string reference to 'gauth_user_auth_services_access'
gauth_user_menu in gauth_user/gauth_user.module
Implements hook_menu().

File

gauth_user/gauth_user.module, line 310
Google Auth Api for drupal.

Code

function gauth_user_auth_services_access($user, $account_id) {
  $account = gauth_account_load($account_id, FALSE);
  if ($account['uid'] == $user->uid) {
    return TRUE;
  }
  else {
    return FALSE;
  }
}