RE: Profiles, public != visitor. fixes #10907
This commit is contained in:
parent
cba211392e
commit
1e98e34128
3 changed files with 3 additions and 1 deletions
|
|
@ -1207,6 +1207,7 @@ sub profileIsViewable {
|
|||
my $userId = $user->userId;
|
||||
|
||||
return 0 if ($self->isVisitor); #Can't view visitor's profile
|
||||
return 0 if ($user->isVisitor); #User is not allowed to see anyone's profile, either
|
||||
return 1 if ($self->userId eq $userId); #Users can always view their own profile
|
||||
|
||||
my $profileSetting = $self->profileField('publicProfile');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue