Fixed GUID string comparisons (eq instead of ==)

This commit is contained in:
Patrick Donelan 2009-08-23 07:44:41 +00:00
parent 280e902c09
commit f3c3bfb4dc
4 changed files with 4 additions and 4 deletions

View file

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