protected function checkACL($area)
{
$area = $this->getACLRuleFor($area);
if (is_bool($area)) {
return $area;
}
if (in_array(strtolower($area), array('false', '0', 'no', '403'))) {
return false;
}
if (in_array(strtolower($area), array('true', '1', 'yes'))) {
return true;
}
if (in_array(strtolower($area), array('guest'))) {
return $this->container->platform->getUser()->guest;
}
if (in_array(strtolower($area), array('user'))) {
return !$this->container->platform->getUser()->guest;
}
if (empty($area)) {
return true;
}
return $this->container->platform->authorise($area, $this->container->componentName);
}