You are here

function _linkchecker_user_access_account_broken_links_report in Link checker 7

Same name and namespace in other branches
  1. 6.2 linkchecker.module \_linkchecker_user_access_account_broken_links_report()

Access callback for user/%user/linkchecker.

Parameters

object $account: The user account.

Return value

int|bool

1 string reference to '_linkchecker_user_access_account_broken_links_report'
linkchecker_menu in ./linkchecker.module
Implements hook_menu().

File

./linkchecker.module, line 199
This module periodically check links in given node types, blocks etc.

Code

function _linkchecker_user_access_account_broken_links_report($account) {
  global $user;

  // Users with 'access own broken links report' permission can only view their
  // own report. Users with the 'access broken links report' permission can
  // view the report for any authenticated user.
  return $account->uid && ($user->uid == $account->uid && user_access('access own broken links report') || user_access('access broken links report'));
}