function notifications_user_user_access in Notifications 7
Same name and namespace in other branches
- 6.4 includes/user.inc \notifications_user_user_access()
Check user access to user
Parameters
$user: Target user account to check access to
$account: User account who wants to access
File
- includes/
user.inc, line 40 - Notifications node API for use by plug-in modules providing user related features
Code
function notifications_user_user_access($user, $account) {
return $user && $user->uid && ($user->uid == $account->uid || user_access('administer users', $account) || $user->access && $user->status && user_access('access user profiles', $account));
}