mirror of
https://github.com/webmin/webmin.git
synced 2025-07-23 00:30:33 +00:00
Fix to always show the field
This commit is contained in:
@ -11,15 +11,9 @@ print &ui_table_row($text{'acl_user'},
|
|||||||
&ui_opt_textbox("user", $o->{'user'} eq '*' ? undef : $o->{'user'},
|
&ui_opt_textbox("user", $o->{'user'} eq '*' ? undef : $o->{'user'},
|
||||||
20, $text{'acl_sameuser'}));
|
20, $text{'acl_sameuser'}));
|
||||||
|
|
||||||
if ($o->{'user'} eq "*" ||
|
print &ui_table_row($text{'acl_sudoenforce'},
|
||||||
($o->{'user'} eq "root" && $remote_user ne $o->{'user'})) {
|
|
||||||
print &ui_table_row($text{'acl_sudoenforce'},
|
|
||||||
&ui_yesno_radio("sudoenforce",
|
&ui_yesno_radio("sudoenforce",
|
||||||
$o->{'sudoenforce'} == 1 ? 1 : 0));
|
$o->{'sudoenforce'} == 1 ? 1 : 0));
|
||||||
}
|
|
||||||
else {
|
|
||||||
print &ui_hidden("sudoenforce", $o->{'sudoenforce'});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sub acl_security_save
|
sub acl_security_save
|
||||||
|
Reference in New Issue
Block a user