You are here

public function RevisionLinkRevert::access in Views (for Drupal 7) 8.3

Check whether current user has access to this handler.

Return value

boolean

Overrides RevisionLink::access

File

lib/Views/node/Plugin/views/field/RevisionLinkRevert.php, line 25
Definition of Views\node\Plugin\views\field\RevisionLinkRevert.

Class

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

Namespace

Views\node\Plugin\views\field

Code

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