{
return "# The upsd admin is not allowed" if ($nut{AdminUser} ne 'enabled');
return "# The upsd admin has no password" if (($nut{AdminPass} || '') eq '');
return "# The upsd admin is not allowed when nut access is set to public" if $nut{access} eq 'public';

my $upsd = $DB->hosts_allow_spec('nut','upsd');
$upsd =~ s|upsd:|upsd: admin op |;

$OUT .= qq(#Allow the Admin User of upsd
$upsd : ALLOW) if ($nut{status} eq 'enabled');
}
