# Check user roles if ($c->check_user_roles('admin')) { my $action = whatever you want your action to be here ({ for example, you can call a specific template from template toolkit and display content tailored for that user there }) }