aboutsummaryrefslogtreecommitdiffstats
path: root/lib/AdminPanel/Privileges.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/AdminPanel/Privileges.pm')
-rw-r--r--lib/AdminPanel/Privileges.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AdminPanel/Privileges.pm b/lib/AdminPanel/Privileges.pm
index d46217d..50033c7 100644
--- a/lib/AdminPanel/Privileges.pm
+++ b/lib/AdminPanel/Privileges.pm
@@ -25,7 +25,7 @@ require Exporter;
use base qw(Exporter);
use English qw(-no_match_vars);
-our @EXPORT = qw(require_root_capability
+our @EXPORT = qw(is_root_capability_required
ask_for_authentication);
my $wrappers = { "sudo" => "/usr/bin/sudo",
@@ -35,7 +35,7 @@ my $wrappers = { "sudo" => "/usr/bin/sudo",
my $wrapper = 0;
-sub require_root_capability {
+sub is_root_capability_required {
return $EUID != 0;
}