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);
|
||||
|
|
|
|||
|
|
@ -2217,7 +2217,7 @@ sub canTakeSurvey {
|
|||
my $userId = $self->session->user->userId();
|
||||
my $takenCount = 0;
|
||||
|
||||
if ( $userId == 1 ) {
|
||||
if ( $userId eq 1 ) {
|
||||
$takenCount = $self->takenCount( { ipAddress => $ip });
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue