/** * Ensure the subject is public * * (non-PHPdoc) * @see \Application\Controller\DatabasesController::subjectAction() */ public function subjectAction() { $response = parent::subjectAction(); $category = $response->getVariable('category'); if ($category->isPublic() == false) { throw new AccessDeniedException('This list is not public'); } return $response; }