package Newslash::Web::Controller::Index;
use Mojo::Base 'Mojolicious::Controller';

sub banned {
    my $c = shift;
    my $user = $c->stash('user');
    if($user->{permissions}->{access}) {
        $c->redirect_to('/');
        $c->res->code(307);
        return;
    }
    $c->render();
}


1;

