1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-12 14:12:44 +01:00

Check registered in upgrade modal

This commit is contained in:
Hillel Coren 2017-12-03 10:25:19 +02:00
parent b371c03f80
commit efd2f24102

View File

@ -65,7 +65,10 @@
<script type="text/javascript">
function showUpgradeModal() {
@if ( ! Auth::check() || ! Auth::user()->confirmed)
@if ( ! Auth::check() || ! Auth::user()->registered)
swal("{!! trans('texts.please_register') !!}");
return;
@elseif ( ! Auth::check() || ! Auth::user()->confirmed)
swal("{!! trans('texts.confirmation_required') !!}");
return;
@endif