Group To Post is now not sufficient to view a CS. Fixes bug #11916.

This commit is contained in:
Colin Kuskie 2010-10-19 11:41:40 -07:00
parent 8df687b2b3
commit 859076fda8
3 changed files with 9 additions and 19 deletions

View file

@ -397,25 +397,6 @@ sub canStartThread {
}
#-------------------------------------------------------------------
=head2 canView ( [ $userId ] )
Extends the base method to also allow users who canPost to the CS.
=head3 $userId
A userId to check for edit permissions. If $userId is false, then it checks
the current session user.
=cut
sub canView {
my $self = shift;
my $userId = shift || $self->session->user->userId;
return $self->next::method( $userId ) || $self->canPost( $userId );
}
#-------------------------------------------------------------------
=head2 commit