fixed: Unable to add threads with permission to edit CS but not in post group

This commit is contained in:
Graham Knop 2010-03-16 13:20:41 -05:00
parent fb14f13a4b
commit 1919973f2b
2 changed files with 2 additions and 1 deletions

View file

@ -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;
}
#-------------------------------------------------------------------