1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-13 22:54:25 +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"> <script type="text/javascript">
function showUpgradeModal() { 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') !!}"); swal("{!! trans('texts.confirmation_required') !!}");
return; return;
@endif @endif