You are here

function views_php_plugin_access::access in Views PHP 7.2

Same name and namespace in other branches
  1. 6 plugins/views/views_php_plugin_access.inc \views_php_plugin_access::access()
  2. 7 plugins/views/views_php_plugin_access.inc \views_php_plugin_access::access()

Implements views_plugin_access#access().

Overrides views_plugin_access::access

File

plugins/views/views_php_plugin_access.inc, line 54

Class

views_php_plugin_access
Access plugin that provides access control based on custom PHP code.

Code

function access($account) {
  if (!empty($this->options['php_access'])) {
    return views_php_check_access($this->options['php_access'], $this->view->name, $this->display->id, $account);
  }
  return TRUE;
}