1 views_handler_field_node_revision_link_revert.inc views_handler_field_node_revision_link_revert::access()

Check whether current user has access to this handler.

Return value

boolean:

Overrides views_handler_field_node_revision_link::access

File

core/modules/node/views/views_handler_field_node_revision_link_revert.inc, line 15
Definition of views_handler_field_node_revision_link_revert.

Class

views_handler_field_node_revision_link_revert
Field handler to present a link to revert a node to a revision.

Code

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