public function LinkApprove::access

Check whether current user has access to this handler.

Return value

boolean

Overrides HandlerBase::access

File

drupal/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkApprove.php, line 21
Definition of Drupal\comment\Plugin\views\field\LinkApprove.

Class

LinkApprove
Provides a comment approve link.

Namespace

Drupal\comment\Plugin\views\field

Code

public function access() {

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