Allow bids on same flight by multiple users

Dash out unnecessary check, let multiple users to bid on same flight according to settings.
This commit is contained in:
B.Fatih KOZ 2022-02-25 22:40:53 +03:00 committed by GitHub
parent 219a7cf6f9
commit 9d368e8efa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 */