You are here

function _tracker_user_access in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/tracker/tracker.module \_tracker_user_access()

Access callback: Determines access permission for an account.

Parameters

int $account: The user account ID to track.

Return value

boolean TRUE if a user has permission to access the account for $account and has permission to access the content.

See also

tracker_menu()

File

core/modules/tracker/tracker.module, line 164
Tracks recent content posted by a user or users.

Code

function _tracker_user_access($account) {
  return $account
    ->access('view') && $account
    ->hasPermission('access content');
}