You are here

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

Check whether current user has access to this handler.

Return value

boolean

Overrides HandlerBase::access

File

lib/Views/comment/Plugin/views/field/LinkApprove.php, line 24
Definition of Views\comment\Plugin\views\field\LinkApprove.

Class

LinkApprove
Provides a comment approve link.

Namespace

Views\comment\Plugin\views\field

Code

public function access() {

  //needs permission to administer comments in general
  return user_access('administer comments');
}