Dont show pricing if logged in, also no register for logged in user.

master
Manager Bot 3 years ago
parent 4526d1232f
commit f21d492c19
  1. 3
      Web/lib/MJB/Web/Controller/Auth.pm
  2. 2
      Web/templates/layouts/standard.html.ep

@ -16,6 +16,9 @@ use DateTime;
# Send the user to whatever the default registration system is. # Send the user to whatever the default registration system is.
#== #==
sub register ( $c ) { sub register ( $c ) {
return $c->redirect_to( $c->url_for( 'show_dashboard' ) )
if exists $c->stash->{person} and $c->stash->{person}->id;
return $c->redirect_to( $c->url_for( 'show_register_stripe' ) ) return $c->redirect_to( $c->url_for( 'show_register_stripe' ) )
if $c->config->{register}{default} eq 'stripe'; if $c->config->{register}{default} eq 'stripe';

@ -121,12 +121,14 @@
Contact Contact
</a> </a>
</li> </li>
% if ( ! $c->stash->{person} ) {
<li class="nav-item"> <li class="nav-item">
<a class="nav-link <%= $sb_active eq "pricing" ? "active" : "" %>" aria-current="page" href="<%= $c->url_for( 'show_pricing' ) %>"> <a class="nav-link <%= $sb_active eq "pricing" ? "active" : "" %>" aria-current="page" href="<%= $c->url_for( 'show_pricing' ) %>">
<span data-feather="dollar-sign"></span> <span data-feather="dollar-sign"></span>
Pricing Pricing
</a> </a>
</li> </li>
% }
<li class="nav-item"> <li class="nav-item">
<a class="nav-link <%= $sb_active eq "open_source" ? "active" : "" %>" aria-current="page" href="<%= $c->url_for( 'show_open_source' ) %>"> <a class="nav-link <%= $sb_active eq "open_source" ? "active" : "" %>" aria-current="page" href="<%= $c->url_for( 'show_open_source' ) %>">
<span data-feather="github"></span> <span data-feather="github"></span>

Loading…
Cancel
Save