Determine if the user has access to this display of the view.
public function access($account = NULL) {
if (!isset($account)) {
global $user;
$account = $user;
}
// Full override.
if (user_access('access all views', $account)) {
return TRUE;
}
$plugin = $this
->getPlugin('access');
if ($plugin) {
return $plugin
->access($account);
}
// fallback to all access if no plugin.
return TRUE;
}