Commit fc3b111b authored by Mike Hibler's avatar Mike Hibler

Allow root to run node_admin.

parent cbd967df
......@@ -115,10 +115,13 @@ if ($onoff ne "on" && $onoff ne "off") {
#
# Verify user and get his DB uid and other info for later.
#
my $this_user = User->ThisUser();
if (! defined($this_user)) {
die("*** $0:\n".
" You ($UID) do not exist!\n");
my $this_user;
if ($UID) {
$this_user = User->ThisUser();
if (! defined($this_user)) {
die("*** $0:\n".
" You ($UID) do not exist!\n");
}
}
if (defined($options{"e"})) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment