mirror of
https://github.com/webmin/webmin.git
synced 2025-07-20 16:48:46 +00:00
Revert incorrect "Fix to preserve ACL even for modules with noacl
flag"
This reverts commit 201d817e9d
.
This commit is contained in:
@ -396,6 +396,7 @@ foreach my $c (sort { $b cmp $a } @cats) {
|
||||
my @grid = ( );
|
||||
my $sw = 0;
|
||||
foreach my $m (@cmlist) {
|
||||
next if ($m->{'noacl'});
|
||||
my $md = $m->{'dir'};
|
||||
my $fromgroup = $memg &&
|
||||
&indexof($md, @{$memg->{'modules'}}) >= 0;
|
||||
@ -408,7 +409,7 @@ foreach my $c (sort { $b cmp $a } @cats) {
|
||||
elsif ($mcan{$md}) {
|
||||
my $label;
|
||||
if ($access{'acl'} && $in{'user'} && !$safe &&
|
||||
&can_module_acl($m) && !$m->{'noacl'}) {
|
||||
&can_module_acl($m)) {
|
||||
# Show link for editing ACL
|
||||
$label = ui_link("edit_acl.cgi?" .
|
||||
"mod=" . urlize($m->{'dir'}) .
|
||||
|
Reference in New Issue
Block a user