Remove debug output.

This commit is contained in:
Colin Kuskie 2012-03-11 16:03:25 -07:00
parent d9bbc1f12c
commit 2fd4f74911

View file

@ -236,12 +236,9 @@ Returns a boolean indicating whether the user can view the current post.
sub canView {
my $self = shift;
my $userId = shift || $self->session->user->userId;
$self->session->log->info( "$userId " . $self->status );
if (($self->status eq "approved" || $self->status eq "archived") && $self->getThread->getParent->canView( $userId )) {
$self->session->log->info( "CAN VIEW" );
return 1;
} elsif ($self->canEdit( $userId )) {
$self->session->log->info( "CAN EDIT" );
return 1;
} else {
return $self->getThread->getParent->canEdit( $userId );