diff --git a/resources/views/errors/not-authorized.blade.php b/resources/views/errors/not-authorized.blade.php new file mode 100644 index 0000000000..10746977b0 --- /dev/null +++ b/resources/views/errors/not-authorized.blade.php @@ -0,0 +1,37 @@ +@extends('layouts.minimal') + +@section('title') + {{__('Unauthorized')}} +@endsection + +@section('content') +
+
+ +
+
+

{{__('Unauthorized')}}

+

{{__('This form is assigned to someone else, so it’s not available under your account.')}}

+

{{__('If you think this is a mistake or need help, reach out to your admin or support team.')}}

+
+
+@endsection + +@section('css') + + +@endsection diff --git a/routes/web.php b/routes/web.php index 6173442946..2039cb5ee7 100644 --- a/routes/web.php +++ b/routes/web.php @@ -248,6 +248,10 @@ Route::get('/unavailable', [UnavailableController::class, 'show'])->name('error.unavailable'); +Route::get('/not-authorized', function () { + return view('errors.not-authorized'); +})->name('errors.not-authorized'); + // SAML Metadata Route Route::resource('/saml/metadata', MetadataController::class)->only('index');