*/
class LinkCheckerUserReportPage {
+ /**
+ * @return string
+ */
public function content() {
return '@TODO';
}
public function access(AccountInterface $account) {
$user = \Drupal::currentUser();
- // 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.
+ // 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 AccessResult::allowedIf($account->id() && (($user->id()) == $account->id()) && $account->hasPermission('access own broken links report') || $account->hasPermission('access broken links report'));
}