Fix for promotions
This commit is contained in:
parent
7f1e0e3fbd
commit
3ffdf1c765
1 changed files with 1 additions and 1 deletions
|
|
@ -95,7 +95,7 @@ class StartupCheck
|
|||
Session::put(SESSION_COUNTER, ++$count);
|
||||
|
||||
if (Utils::isNinja()) {
|
||||
if ($coupon = request()->coupon) {
|
||||
if ($coupon = request()->coupon && ! $company->hasActivePlan()) {
|
||||
if ($code = config('ninja.coupon_50_off')) {
|
||||
if (hash_equals($coupon, $code)) {
|
||||
$company->applyDiscount(.5);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue