Skip to content

Commit

Permalink
Remove debug output.
Browse files Browse the repository at this point in the history
  • Loading branch information
perlDreamer committed Mar 11, 2012
1 parent d9bbc1f commit 2fd4f74
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/WebGUI/Asset/Post.pm
Expand Up @@ -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 );
Expand Down

0 comments on commit 2fd4f74

Please sign in to comment.