Commit 55083843 authored by IKEDA Soji's avatar IKEDA Soji
Browse files

small fix: Remove a broken test.

parent 110d7dd9
......@@ -1633,10 +1633,6 @@ while ($query = CGI::Fast->new) {
if $function eq 'subscribe'
and $param->{'user'}{'email'}
and $list->is_list_member($param->{'user'}{'email'});
return 0
if ($function eq 'archive_web_access'
or $function eq 'archive.web_access')
and not %{$list->{'admin'}{'archive'} || {}};
 
my $result = Sympa::Scenario->new($list, $function)->authz(
$param->{'auth_method'},
......@@ -1646,7 +1642,7 @@ while ($query = CGI::Fast->new) {
}
);
return 0 unless ref $result eq 'HASH';
return 0 if $result->{'action'} eq 'reject';
return 0 if $result->{action} =~ /\Areject\b/i;
return 1;
};
 
......
......@@ -4231,6 +4231,7 @@ sub is_moderated {
}
## Is the list archived?
#FIXME: Broken. Use scenario or is_archiving_enabled().
sub is_archived {
$log->syslog('debug', '');
if (shift->{'admin'}{'archive'}{'web_access'}) {
......@@ -4242,6 +4243,7 @@ sub is_archived {
}
## Is the list web archived?
#FIXME: Broken. Use scenario or is_archiving_enabled().
sub is_web_archived {
my $self = shift;
return 1
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment