RE: Profiles, public != visitor. fixes #10907

This commit is contained in:
Colin Kuskie 2009-09-06 19:37:25 -07:00
parent cba211392e
commit 1e98e34128
3 changed files with 3 additions and 1 deletions

View file

@ -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');