1
0
mirror of https://github.com/freescout-helpdesk/freescout.git synced 2024-11-24 03:12:46 +01:00

Allow to show custom message on 403 error page

This commit is contained in:
FreeScout 2023-07-15 23:02:56 -07:00
parent ffe2adc4c2
commit 9266e5c207

View File

@ -4,5 +4,11 @@
@section('message')
{{ __('Access denied') }}
@php
$msg = $exception->getMessage();
@endphp
@if ($msg && strstr($msg, '[display]'))
<br/><br/>{{ str_replace('[display]', '', $msg) }}
@endif
<br/><br/><small>{{ __('Go to') }} <a href="{{ \Helper::urlHome() }}">{{ __('Homepage') }}</a></small>
@endsection