diff options
Diffstat (limited to 'app/Exceptions/RecordAccessDeniedException.php')
| -rw-r--r-- | app/Exceptions/RecordAccessDeniedException.php | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/app/Exceptions/RecordAccessDeniedException.php b/app/Exceptions/RecordAccessDeniedException.php index ef931fa407..46de33e218 100644 --- a/app/Exceptions/RecordAccessDeniedException.php +++ b/app/Exceptions/RecordAccessDeniedException.php @@ -23,11 +23,13 @@ use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException; /** * Exception thrown when a record cannot be accessed due to privacy rules. */ -class RecordAccessDeniedException extends AccessDeniedHttpException { - /** - * RecordNotFoundException constructor. - */ - public function __construct() { - parent::__construct(I18N::translate('This record does not exist or you do not have permission to view it.')); - } +class RecordAccessDeniedException extends AccessDeniedHttpException +{ + /** + * RecordNotFoundException constructor. + */ + public function __construct() + { + parent::__construct(I18N::translate('This record does not exist or you do not have permission to view it.')); + } } |
