You are here

function notifications_user_user_access in Notifications 6.4

Same name and namespace in other branches
  1. 7 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

1 string reference to 'notifications_user_user_access'
notifications_notifications in ./notifications.module
Implementation of hook_notifications()

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));
}