function openid_connect_connected_accounts_access in OpenID Connect / OAuth client 7
Access callback: Connected accounts page.
1 string reference to 'openid_connect_connected_accounts_access'
- openid_connect_menu in ./
openid_connect.module - Implements hook_menu().
File
- ./
openid_connect.module, line 213 - A pluggable client implementation for the OpenID Connect protocol.
Code
function openid_connect_connected_accounts_access($account) {
global $user;
if (user_access('administer users')) {
return TRUE;
}
return $user->uid && $user->uid === $account->uid && user_access('manage own openid_connect accounts');
}