function views_plugin_access_role::access

3.x views_plugin_access_role.inc views_plugin_access_role::access($account)
2.x views_plugin_access_role.inc views_plugin_access_role::access($account)

Determine if the current user has access or not.

Overrides views_plugin_access::access

File

plugins/views_plugin_access_role.inc, line 7

Class

views_plugin_access_role
Access plugin that provides role-based access control.

Code

function access($account) {
  return views_check_roles(array_filter($this->options['role']), $account);
}