function _tracker_myrecent_access

Access callback: Determines access permission for a user's own account.

Parameters

int $account: The account ID to check.

Return value

boolean TRUE if a user is accessing tracking info for their own account and has permission to access the content.

See also

tracker_menu()

1 string reference to '_tracker_myrecent_access'
tracker_menu in drupal/core/modules/tracker/tracker.module
Implements hook_menu().

File

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

Code

function _tracker_myrecent_access($account) {

  // This path is only allowed for authenticated users looking at their own content.
  return $account->uid && $GLOBALS['user']->uid == $account->uid && user_access('access content');
}