Commit 5890ffd7 authored by Sympa authors's avatar Sympa authors Committed by IKEDA Soji
Browse files

tidyall

parent b200c05f
......@@ -111,7 +111,8 @@ $sth = $sdm->do_prepared_query(
q{SELECT COUNT(*) FROM user_table WHERE password_user LIKE 'crypt.%'});
my ($encrypted) = $sth->fetchrow_array;
if ($encrypted and not $Crypt::CipherSaber::VERSION) {
die "Password seems encrypted while Crypt::CipherSaber is not installed!\n";
die
"Password seems encrypted while Crypt::CipherSaber is not installed!\n";
}
$sth = $sdm->do_query(q{SELECT email_user, password_user from user_table});
......
......@@ -2991,19 +2991,19 @@ sub check_param_out {
if (Conf::get_robot_conf($robot, 'shared_feature') eq 'on') {
$param->{'is_shared_allowed'} = 1;
 
# Shared documents access control.
my $shared_doc = Sympa::WWW::SharedDocument->new($list);
if ($shared_doc and $shared_doc->{status} eq 'exist') {
# Check if shared is publically accessible (useful information
# for RSS).
my %access = $shared_doc->get_privileges(
mode => 'read',
sender => undef,
auth_method => $param->{'auth_method'},
scenario_context => {sender => 'nobody'}
);
$param->{'shared_public_access'} = $access{'may'}{'read'};
}
# Shared documents access control.
my $shared_doc = Sympa::WWW::SharedDocument->new($list);
if ($shared_doc and $shared_doc->{status} eq 'exist') {
# Check if shared is publically accessible (useful information
# for RSS).
my %access = $shared_doc->get_privileges(
mode => 'read',
sender => undef,
auth_method => $param->{'auth_method'},
scenario_context => {sender => 'nobody'}
);
$param->{'shared_public_access'} = $access{'may'}{'read'};
}
}
 
# List included in other list may not be closed nor renamed.
......@@ -17239,8 +17239,8 @@ sub _is_action_disabled {
return 1
if grep { $action eq $_ }
qw(d_admin d_change_access d_control d_create_child d_delete
d_describe d_editfile d_install_shared d_properties d_read
d_reject_shared d_rename d_set_owner d_unzip d_update);
d_describe d_editfile d_install_shared d_properties d_read
d_reject_shared d_rename d_set_owner d_unzip d_update);
}
 
return undef;
......
......@@ -1682,13 +1682,13 @@ our @params = (
# Shared document repository
{ 'name' => 'shared_feature',
'gettext_id' => 'Enable shared repository',
{ 'name' => 'shared_feature',
'gettext_id' => 'Enable shared repository',
'gettext_comment' =>
'If set to "on", list owners can open shared repository.',
'vhost' => '1',
'edit' => '1',
'default' => 'off',
'vhost' => '1',
'edit' => '1',
'default' => 'off',
},
{ 'name' => 'default_shared_quota',
......
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