function Notifications_User::user_access in Notifications 7
Check user access
File
- ./
notifications.object.inc, line 352 - Drupal Notifications Framework - Default class file
Class
- Notifications_User
- User objects
Code
function user_access($account) {
$user = $this
->get_object();
return $user && $user->uid && ($user->uid == $account->uid || user_access('administer users', $account) || $user->access && $user->status && user_access('access user profiles', $account));
}