master
Mikael Nordin 8 years ago
parent 5167940746
commit 84d022a13f

@ -22,6 +22,12 @@ This is the entry point for thruk to start the plugin
sub index { sub index {
my ( $c ) = @_; my ( $c ) = @_;
return unless Thruk::Action::AddDefaults::add_defaults($c, Thruk::ADD_CACHED_DEFAULTS);
if( !$c->check_user_roles("authorized_for_configuration_information") || !$c->check_user_roles("authorized_for_system_commands")) {
return $c->detach('/error/index/8');
}
$c->stash->{title} = 'Hello World!'; $c->stash->{title} = 'Hello World!';
$c->stash->{'subtitle'} = 'Hello World!'; $c->stash->{'subtitle'} = 'Hello World!';
$c->stash->{'infoBoxTitle'} = 'Hello World!'; $c->stash->{'infoBoxTitle'} = 'Hello World!';

Loading…
Cancel
Save