You are here

public function RevisionLinkDelete::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/RevisionLinkDelete.php, line 25
Definition of Views\node\Plugin\views\field\RevisionLinkDelete.

Class

RevisionLinkDelete
Field handler to present link to delete a node revision.

Namespace

Views\node\Plugin\views\field

Code

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