fixed #9852: Users can accept private messages from Visitor, but Visitor cannot send messages
This commit is contained in:
parent
dd86f8c71e
commit
a58300f8d5
2 changed files with 2 additions and 0 deletions
|
|
@ -7,6 +7,7 @@
|
|||
- fixed #9819: Survey: hoverhelp showing instead of field name
|
||||
- fixed #9822: Matrix: Wrong field label
|
||||
- fixed #9823: Matrix: no cancel button in add/edit listing
|
||||
- fixed #9852: Users can accept private messages from Visitor, but Visitor cannot send messages
|
||||
|
||||
7.6.13
|
||||
- fixed AdSpace bug: impressions and clicks for most non-human web clients will not be counted.
|
||||
|
|
|
|||
|
|
@ -120,6 +120,7 @@ sub acceptsPrivateMessages {
|
|||
my $userId = shift;
|
||||
|
||||
return 0 if ($self->isVisitor); #Visitor can't get private messages
|
||||
return 0 if ($userId eq "1"); # Visitor can't send private messages
|
||||
return 0 if ($self->userId eq $userId); #Can't send private messages to yourself
|
||||
|
||||
my $pmSetting = $self->profileField('allowPrivateMessages');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue