With auth
This commit is contained in:
parent
5167940746
commit
84d022a13f
1 changed files with 6 additions and 0 deletions
|
@ -22,6 +22,12 @@ This is the entry point for thruk to start the plugin
|
|||
|
||||
sub index {
|
||||
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->{'subtitle'} = 'Hello World!';
|
||||
$c->stash->{'infoBoxTitle'} = 'Hello World!';
|
||||
|
|
Loading…
Add table
Reference in a new issue