contact-setting is not plural!

This was working incorrectly because contact-setting is not plural.
It's one setting.
This commit is contained in:
Bradley M. Kuhn 2017-01-18 14:33:40 +11:00
parent ffd609b0cf
commit 722105b1ff

View file

@ -1490,9 +1490,10 @@ sub emailOk($$) {
my $contactSetting;
my $req = $self->getRequest({donorId => $donorId,
requestType => 'contact-settings'});
requestType => 'contact-setting'});
$contactSetting =$req->{requestConfiguration}
if defined $req and defined $req->{requestConfiguration};
return ((not defined $contactSetting) or
($contactSetting eq 'no-paper-but-email-ok'));
}