Check registered in upgrade modal
This commit is contained in:
parent
0aa0fb859e
commit
6ed2d5b8c4
2 changed files with 5 additions and 1 deletions
|
|
@ -2599,6 +2599,7 @@ $LANG = array(
|
|||
'is_not_sent_reminders' => 'Reminders are not sent',
|
||||
'promotion_footer' => 'Your promotion will expire soon, :link to upgrade now.',
|
||||
'unable_to_delete_primary' => 'Note: to delete this company first delete all linked companies.',
|
||||
'please_register' => 'Please register your account',
|
||||
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -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