Remove override of addChild in Post, since the same check is done via www_add/canAdd/validParent.

This commit is contained in:
Colin Kuskie 2010-03-18 12:38:31 -07:00
parent b0cad3b155
commit a3f58bd841

View file

@ -133,25 +133,6 @@ sub _fixReplyCount {
#-------------------------------------------------------------------
=head2 addChild ( )
Overriding to limit the types of children allowed.
=cut
sub addChild {
my $self = shift;
my $properties = shift;
my @other = @_;
if ($properties->{className} ne "WebGUI::Asset::Post") {
$self->session->errorHandler->security("add a ".$properties->{className}." to a ".$self->className);
return undef;
}
return $self->SUPER::addChild($properties, @other);
}
#-------------------------------------------------------------------
=head2 addRevision ( )
Override the default method in order to deal with attachments.