diff options
author | matteo <matteo.pasotti@gmail.com> | 2014-07-02 00:36:16 +0300 |
---|---|---|
committer | matteo <matteo.pasotti@gmail.com> | 2014-07-02 00:36:16 +0300 |
commit | 540b36d25e82ed2f2643250f254c6fc9e4a62ad2 (patch) | |
tree | 3becd296c800f44411808d700f5efd6abd49d215 /lib/AdminPanel/Module/Users.pm | |
parent | 94fddcaad5a0c3e6f8cb4d7504f4e5b0443b99bc (diff) | |
download | manatools-540b36d25e82ed2f2643250f254c6fc9e4a62ad2.tar manatools-540b36d25e82ed2f2643250f254c6fc9e4a62ad2.tar.gz manatools-540b36d25e82ed2f2643250f254c6fc9e4a62ad2.tar.bz2 manatools-540b36d25e82ed2f2643250f254c6fc9e4a62ad2.tar.xz manatools-540b36d25e82ed2f2643250f254c6fc9e4a62ad2.zip |
use English to improve readability
Diffstat (limited to 'lib/AdminPanel/Module/Users.pm')
-rw-r--r-- | lib/AdminPanel/Module/Users.pm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/AdminPanel/Module/Users.pm b/lib/AdminPanel/Module/Users.pm index 4e710b30..dbf69620 100644 --- a/lib/AdminPanel/Module/Users.pm +++ b/lib/AdminPanel/Module/Users.pm @@ -77,6 +77,7 @@ use USER; use utf8; use Sys::Syslog; use Glib; +use English; use yui; use AdminPanel::Shared::GUI; use AdminPanel::Shared::Locales; @@ -141,7 +142,7 @@ sub _USERInitialize { my $self = shift; # $EUID: effective user identifier - if ($> == 0) { + if ($EUID == 0) { return USER::ADMIN->new; } @@ -851,7 +852,7 @@ sub addUserDialog { my $self = shift; my $standalone = shift; - if ($> != 0) { + if ($EUID != 0) { $self->sh_gui->warningMsgBox({ title => $self->name, text => $self->loc->N("root privileges required"), @@ -2486,7 +2487,7 @@ sub _refreshActions { sub _manageUsersDialog { my $self = shift; - if ($> != 0) { + if ($EUID != 0) { $self->sh_gui->warningMsgBox({ title => $self->name, text => $self->loc->N("root privileges required"), |