We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9bbc1f commit 2fd4f74Copy full SHA for 2fd4f74
lib/WebGUI/Asset/Post.pm
@@ -236,12 +236,9 @@ Returns a boolean indicating whether the user can view the current post.
236
sub canView {
237
my $self = shift;
238
my $userId = shift || $self->session->user->userId;
239
- $self->session->log->info( "$userId " . $self->status );
240
if (($self->status eq "approved" || $self->status eq "archived") && $self->getThread->getParent->canView( $userId )) {
241
- $self->session->log->info( "CAN VIEW" );
242
return 1;
243
} elsif ($self->canEdit( $userId )) {
244
- $self->session->log->info( "CAN EDIT" );
245
246
} else {
247
return $self->getThread->getParent->canEdit( $userId );
0 commit comments