Remove debug output.
This commit is contained in:
parent
d9bbc1f12c
commit
2fd4f74911
1 changed files with 0 additions and 3 deletions
|
|
@ -236,12 +236,9 @@ Returns a boolean indicating whether the user can view the current post.
|
||||||
sub canView {
|
sub canView {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my $userId = shift || $self->session->user->userId;
|
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 )) {
|
if (($self->status eq "approved" || $self->status eq "archived") && $self->getThread->getParent->canView( $userId )) {
|
||||||
$self->session->log->info( "CAN VIEW" );
|
|
||||||
return 1;
|
return 1;
|
||||||
} elsif ($self->canEdit( $userId )) {
|
} elsif ($self->canEdit( $userId )) {
|
||||||
$self->session->log->info( "CAN EDIT" );
|
|
||||||
return 1;
|
return 1;
|
||||||
} else {
|
} else {
|
||||||
return $self->getThread->getParent->canEdit( $userId );
|
return $self->getThread->getParent->canEdit( $userId );
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue