From 9d368e8efab640c2ff735e9c43f9e0bb9498b2a7 Mon Sep 17 00:00:00 2001 From: "B.Fatih KOZ" Date: Fri, 25 Feb 2022 22:40:53 +0300 Subject: [PATCH] Allow bids on same flight by multiple users Dash out unnecessary check, let multiple users to bid on same flight according to settings. --- app/Services/BidService.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Services/BidService.php b/app/Services/BidService.php index 4be5181c..1b427274 100644 --- a/app/Services/BidService.php +++ b/app/Services/BidService.php @@ -138,8 +138,10 @@ class BidService extends Service throw new BidExistsForFlight($flight); } + // This is already controlled above at line 114 with user bid count, + // To prevent or allow multiple bids. Should not be here at all if (setting('bids.allow_multiple_bids') === false) { - throw new BidExistsForFlight($flight); + // throw new BidExistsForFlight($flight); } } else { /* @noinspection NestedPositiveIfStatementsInspection */