From a3f58bd84149e2959bb7da7e83640cab99171fa1 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Thu, 18 Mar 2010 12:38:31 -0700 Subject: [PATCH] Remove override of addChild in Post, since the same check is done via www_add/canAdd/validParent. --- lib/WebGUI/Asset/Post.pm | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/lib/WebGUI/Asset/Post.pm b/lib/WebGUI/Asset/Post.pm index 93cd066a3..a98cd8500 100644 --- a/lib/WebGUI/Asset/Post.pm +++ b/lib/WebGUI/Asset/Post.pm @@ -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.