Check registered in upgrade modal
This commit is contained in:
parent
b371c03f80
commit
efd2f24102
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue