function views_plugin_access_role::access
Same name in other branches
- 6.x-3.x plugins/views_plugin_access_role.inc \views_plugin_access_role::access()
Overrides views_plugin_access::access
File
-
plugins/
views_plugin_access_role.inc, line 18
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);
}