Revert incorrect "Fix to preserve ACL even for modules with noacl flag"

This reverts commit 201d817e9d.
This commit is contained in:
Ilia Ross
2025-05-09 02:08:15 +03:00
parent 412cc0b612
commit 23b0e2491e

View File

@ -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'}) .