From 85c933f751ab236c28a3f5db92968a50e3073774 Mon Sep 17 00:00:00 2001 From: Angelo Naselli Date: Fri, 26 Dec 2014 18:40:15 +0100 Subject: Disabled root privileges check Fixed refresh with dbus backend --- lib/AdminPanel/Module/Services.pm | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/lib/AdminPanel/Module/Services.pm b/lib/AdminPanel/Module/Services.pm index b154b9d2..c82df0a3 100644 --- a/lib/AdminPanel/Module/Services.pm +++ b/lib/AdminPanel/Module/Services.pm @@ -235,13 +235,13 @@ sub BUILD { sub start { my $self = shift; - if ($EUID != 0) { - $self->sh_gui->warningMsgBox({ - title => $self->name, - text => $self->loc->N("root privileges required"), - }); - return; - } +# if ($EUID != 0) { +# $self->sh_gui->warningMsgBox({ +# title => $self->name, +# text => $self->loc->N("root privileges required"), +# }); +# return; +# } $self->_servicePanel(); }; @@ -267,7 +267,8 @@ sub start { sub loadServices { my $self = shift; - my ($l, $on_services) = $self->sh_services->services(); + my $refresh = 1; + my ($l, $on_services) = $self->sh_services->services($refresh); my @xinetd_services = map { $_->[0] } $self->sh_services->xinetd_services(); $self->_xinetd_services(); -- cgit v1.2.1