public function RevisionLink::access

Check whether current user has access to this handler.

Return value

boolean

Overrides HandlerBase::access

2 methods override RevisionLink::access()
RevisionLinkDelete::access in drupal/core/modules/node/lib/Drupal/node/Plugin/views/field/RevisionLinkDelete.php
Check whether current user has access to this handler.
RevisionLinkRevert::access in drupal/core/modules/node/lib/Drupal/node/Plugin/views/field/RevisionLinkRevert.php
Check whether current user has access to this handler.

File

drupal/core/modules/node/lib/Drupal/node/Plugin/views/field/RevisionLink.php, line 35
Definition of Drupal\node\Plugin\views\field\RevisionLink.

Class

RevisionLink
Field handler to present a link to a node revision.

Namespace

Drupal\node\Plugin\views\field

Code

public function access() {
  return user_access('view revisions') || user_access('administer nodes');
}