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:
parent
75cdaba2d5
commit
c1197bb245
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user