From 6c843812d237ce9e3798bfe9f58e2f63312f4ca9 Mon Sep 17 00:00:00 2001 From: miguel456 Date: Sat, 5 Mar 2022 23:12:37 +0000 Subject: [PATCH] fix: remove account name from 403 error This commit removes the user's name from the error message, as a 403 may be triggered by someone who is logged out, e.g. suspended user with no permission to access registration page. --- resources/views/breadcrumbs/header.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/breadcrumbs/header.blade.php b/resources/views/breadcrumbs/header.blade.php index ce38959..00d13a6 100755 --- a/resources/views/breadcrumbs/header.blade.php +++ b/resources/views/breadcrumbs/header.blade.php @@ -157,7 +157,7 @@ 403 illustration

{{ __('403 - Forbidden') }}

-

{{ __('Hey there :accountName! It looks like you don\'t have permission to access this resource. Believe this is a mistake? Contact us and we\'ll sort it out!', ['accountName' => Auth::user()->name]) }}

+

{{ __('Hey there! It looks like you don\'t have permission to access this resource. This may be because you don\'t have the appropriate roles, or because you\'ve been suspended. Believe this is a mistake? Contact us and we\'ll sort it out!') }}

@break; @case(503)