1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 20:52:56 +01:00

Require confirming account before upgrading

This commit is contained in:
Hillel Coren 2016-11-02 08:49:02 +02:00
parent 75cdaba2d5
commit c1197bb245

View File

@ -177,6 +177,11 @@
<script type="text/javascript">
function showUpgradeModal() {
@if ( ! Auth::check() || ! Auth::user()->confirmed)
swal("{{ trans('texts.confirmation_required') }}");
return;
@endif
$(window).scrollTop(0);
$('#upgrade-modal').fadeIn();
}