Skip to content

Commit

Permalink
Issue 1733 / 1735 - Eliminate special casing for PMs to minor accounts
Browse files Browse the repository at this point in the history
Changed minor accounts to receive PMs from all registered users.
Fixed call when checking whether a PM can be sent.
  • Loading branch information
hotlevel4 committed Jul 15, 2016
1 parent e2141a1 commit c5f60dd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion cgi-bin/LJ/Setting/UserMessaging.pm
Expand Up @@ -32,7 +32,7 @@ sub option {
my ($class, $u, $errs, $args) = @_;
my $key = $class->pkgkey;

my $usermsg = $class->get_arg($args, "usermsg") || $u->prop("opt_usermsg");
my $usermsg = $class->get_arg($args, "usermsg") || $u->opt_usermsg;

my @options = (
"Y" => $class->ml( 'setting.usermessaging.opt.y' ),
Expand Down
1 change: 0 additions & 1 deletion cgi-bin/LJ/User/Message.pm
Expand Up @@ -424,7 +424,6 @@ sub opt_usermsg {
if ( defined $prop && $prop =~ /^(Y|F|M|N)$/ ) {
return $prop;
} else {
return 'M' if $u->is_minor;
return 'Y';
}
}
Expand Down

0 comments on commit c5f60dd

Please sign in to comment.