fixed: Unable to add threads with permission to edit CS but not in post group
This commit is contained in:
parent
fb14f13a4b
commit
1919973f2b
2 changed files with 2 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ in the default asset, which better be a Collaboration System.
|
|||
sub canAdd {
|
||||
my $class = shift;
|
||||
my $session = shift;
|
||||
return $session->user->isInGroup($session->asset->get('canStartThreadGroupId'));
|
||||
return $session->asset->isa('WebGUI::Asset::Wobject::Collaboration') && $session->asset->canStartThread;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue