1 views_handler_field_comment_link_approve.inc views_handler_field_comment_link_approve::access()

Check whether current user has access to this handler.

Return value

boolean:

Overrides views_handler::access

File

core/modules/comment/views/views_handler_field_comment_link_approve.inc, line 14
Definition of views_handler_field_comment_link_approve.

Class

views_handler_field_comment_link_approve
Field handler to present a link to approve a comment.

Code

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