diff options
author | Angelo Naselli <anaselli@linux.it> | 2014-12-26 18:40:15 +0100 |
---|---|---|
committer | Angelo Naselli <anaselli@linux.it> | 2014-12-26 18:40:15 +0100 |
commit | 85c933f751ab236c28a3f5db92968a50e3073774 (patch) | |
tree | a06c01b2e57d3d2595917d3df04ad0eae2e35a18 /lib/AdminPanel | |
parent | b574983cb7f02ceedff0999b7e2f2c51a7cc3859 (diff) | |
download | manatools-85c933f751ab236c28a3f5db92968a50e3073774.tar manatools-85c933f751ab236c28a3f5db92968a50e3073774.tar.gz manatools-85c933f751ab236c28a3f5db92968a50e3073774.tar.bz2 manatools-85c933f751ab236c28a3f5db92968a50e3073774.tar.xz manatools-85c933f751ab236c28a3f5db92968a50e3073774.zip |
Disabled root privileges check
Fixed refresh with dbus backend
Diffstat (limited to 'lib/AdminPanel')
-rw-r--r-- | lib/AdminPanel/Module/Services.pm | 17 |
1 files 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(); |