public function RevisionLinkRevert::access

Check whether current user has access to this handler.

Return value

boolean

Overrides RevisionLink::access

File

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

Class

RevisionLinkRevert
Field handler to present a link to revert a node to a revision.

Namespace

Drupal\node\Plugin\views\field

Code

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