Skip to content
Permalink
Browse files

Remove debug output.

  • Loading branch information...
perlDreamer committed Mar 11, 2012
1 parent d9bbc1f commit 2fd4f749113f3dcc12d565dce51f7b21b8601a4d
Showing with 0 additions and 3 deletions.
  1. +0 −3 lib/WebGUI/Asset/Post.pm
@@ -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 );

0 comments on commit 2fd4f74

Please sign in to comment.
You can’t perform that action at this time.