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:
@@ -138,8 +138,10 @@ class BidService extends Service
|
|||||||
throw new BidExistsForFlight($flight);
|
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) {
|
if (setting('bids.allow_multiple_bids') === false) {
|
||||||
throw new BidExistsForFlight($flight);
|
// throw new BidExistsForFlight($flight);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* @noinspection NestedPositiveIfStatementsInspection */
|
/* @noinspection NestedPositiveIfStatementsInspection */
|
||||||
|
|||||||
Reference in New Issue
Block a user