Merge commit 'bfe9780ce0' into WebGUI8. Merged up to 7.10.3
This commit is contained in:
commit
a90eadda7c
37 changed files with 537 additions and 92 deletions
|
|
@ -857,25 +857,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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue