You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ngcp-panel/lib/NGCP/Panel/Widget/Plugin/SystemOverview.pm

29 lines
540 B

package NGCP::Panel::Widget::Plugin::SystemOverview;
use Moose::Role;
has 'template' => (
is => 'ro',
isa => 'Str',
default => 'widgets/system_overview.tt'
);
around handle => sub {
my ($foo, $self, $c) = @_;
print "++++ SystemOverview::handle\n";
return;
};
around filter => sub {
my ($foo, $self, $c) = @_;
return $self if(
$c->check_user_roles(qw/administrator/) &&
ref $c->controller eq 'NGCP::Panel::Controller::Dashboard'
);
return;
};
1;
# vim: set tabstop=4 expandtab: