diff --git a/src/Xibo/Support/Exception/AccessDeniedException.php b/src/Xibo/Support/Exception/AccessDeniedException.php index b17fd51..9e7ee34 100644 --- a/src/Xibo/Support/Exception/AccessDeniedException.php +++ b/src/Xibo/Support/Exception/AccessDeniedException.php @@ -1,6 +1,6 @@ help = $help; + + parent::__construct($message, 403, null); + } + public function getHttpStatusCode() { return 403; } + + /** + * @return array + */ + protected function getErrorData() + { + return [ + 'help' => $this->help + ]; + } } \ No newline at end of file