Fix for promotions

This commit is contained in:
Hillel Coren 2018-11-25 10:53:03 +02:00
parent 7f1e0e3fbd
commit 3ffdf1c765

View file

@ -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);