Don't show delete in others checkbox if not optional
authorJamie Cameron <jcameron@webmin.com>
Mon, 29 Aug 2011 18:28:24 +0000 (11:28 -0700)
committerJamie Cameron <jcameron@webmin.com>
Mon, 29 Aug 2011 18:28:24 +0000 (11:28 -0700)
useradmin/mass_delete_user.cgi

index d678df3..9ab4b5a 100755 (executable)
@@ -253,8 +253,9 @@ else {
                                      &nice_size($size*1024)) :
                                &text('umass_sure2', scalar(@dlist)),
                        \@hids, \@buts,
-                       &ui_checkbox("others", 1, $text{'udel_dothers'},
-                                    $config{'default_other'}),
+                       $access{'dothers'} == 1 ?
+                               &ui_checkbox("others", 1, $text{'udel_dothers'},
+                                            $config{'default_other'}) : "",
                        $delete_sys && $delete_sys->{'user'} eq 'root' ?
                           $text{'udel_root'} : "",
                        );