You are here

function views_plugin_access_perm::access in Views (for Drupal 7) 6.2

Same name and namespace in other branches
  1. 6.3 plugins/views_plugin_access_perm.inc \views_plugin_access_perm::access()
  2. 7.3 plugins/views_plugin_access_perm.inc \views_plugin_access_perm::access()

Determine if the current user has access or not.

Overrides views_plugin_access::access

File

plugins/views_plugin_access_perm.inc, line 7

Class

views_plugin_access_perm
Access plugin that provides permission-based access control.

Code

function access($account) {
  return views_check_perm($this->options['perm'], $account);
}