You are here

function _linkchecker_user_access_account_broken_links_report in Link checker 6.2

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

Access callback for user/%user/linkchecker.

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

File

./linkchecker.module, line 122
This module periodically check links in given node types, blocks, cck fields, 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'));
}