public function views_plugin_access_role::access in Views (for Drupal 7) 7.3
Same name and namespace in other branches
- 6.3 plugins/views_plugin_access_role.inc \views_plugin_access_role::access()
- 6.2 plugins/views_plugin_access_role.inc \views_plugin_access_role::access()
Determine if the current user has access or not.
Overrides views_plugin_access::access
File
- plugins/
views_plugin_access_role.inc, line 18 - Definition of views_plugin_access_role.
Class
- views_plugin_access_role
- Access plugin that provides role-based access control.
Code
public function access($account) {
return views_check_roles(array_filter($this->options['role']), $account);
}