From 669b02734a4792002686c8b16867a5a3ae75c6f4 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 4 Feb 2018 10:57:29 +0200 Subject: [PATCH] Don't allow re-registering account --- resources/views/header.blade.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/views/header.blade.php b/resources/views/header.blade.php index 59674cd4cd..4618527f9a 100644 --- a/resources/views/header.blade.php +++ b/resources/views/header.blade.php @@ -249,7 +249,9 @@ @if (Auth::check()) @if (!Auth::user()->registered) - {!! Button::success(trans('texts.sign_up'))->withAttributes(array('id' => 'signUpButton', 'data-toggle'=>'modal', 'data-target'=>'#signUpModal', 'style' => 'max-width:100px;;overflow:hidden'))->small() !!}   + @if (!Auth::user()->confirmed) + {!! Button::success(trans('texts.sign_up'))->withAttributes(array('id' => 'signUpButton', 'data-toggle'=>'modal', 'data-target'=>'#signUpModal', 'style' => 'max-width:100px;;overflow:hidden'))->small() !!}   + @endif @elseif (Utils::isNinjaProd() && (!Auth::user()->isPro() || Auth::user()->isTrial())) @if (Auth::user()->account->company->hasActivePromo()) {!! Button::warning(trans('texts.plan_upgrade'))->withAttributes(array('onclick' => 'showUpgradeModal()', 'style' => 'max-width:100px;overflow:hidden'))->small() !!}