Fixed GUID string comparisons (eq instead of ==)
This commit is contained in:
parent
280e902c09
commit
f3c3bfb4dc
4 changed files with 4 additions and 4 deletions
|
|
@ -241,7 +241,7 @@ sub canView {
|
|||
my $album = $self->getParent;
|
||||
return 0 unless $album->canView($userId);
|
||||
|
||||
if ($self->isFriendsOnly && $userId != $self->get("ownerUserId") ) {
|
||||
if ($self->isFriendsOnly && $userId ne $self->get("ownerUserId") ) {
|
||||
my $owner = WebGUI::User->new( $self->session, $self->get("ownerUserId") );
|
||||
return 0
|
||||
unless WebGUI::Friends->new($self->session, $owner)->isFriend($userId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue