You are here

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

Check whether current user has access to this handler.

Return value

boolean

Overrides HandlerBase::access

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

File

lib/Views/node/Plugin/views/field/RevisionLink.php, line 35
Definition of Views\node\Plugin\views\field\RevisionLink.

Class

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

Namespace

Views\node\Plugin\views\field

Code

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