From 73f60ced6ca10c5514ebfaa8ac8043321c882c06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Thu, 15 Jul 2021 09:17:37 +0300 Subject: [PATCH] fixed signed payment method redirect issue.. --- app/Listeners/Document/CreateDocumentTransaction.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Listeners/Document/CreateDocumentTransaction.php b/app/Listeners/Document/CreateDocumentTransaction.php index 7621755cc..cd5c16245 100644 --- a/app/Listeners/Document/CreateDocumentTransaction.php +++ b/app/Listeners/Document/CreateDocumentTransaction.php @@ -31,7 +31,9 @@ class CreateDocumentTransaction $type = Str::plural($event->document->type); - if (empty($user)) { + $signed = request()->isSigned($document->company_id); + + if (empty($user) || $signed) { flash($message)->error()->important(); redirect()->route("signed.$type.show", $document->id)->send();