WikiPage uses an role to force hiddenness now. No need to subclass addRevision.

This commit is contained in:
Colin Kuskie 2010-03-23 11:52:18 -07:00
parent c2fac1e865
commit 4c3a26b023

View file

@ -74,24 +74,6 @@ sub addChild {
#-------------------------------------------------------------------
=head2 addRevision ( )
Override the default method in order to deal with attachments.
=cut
sub addRevision {
my $self = shift;
my $newSelf = $self->next::method(@_);
my $now = time();
$newSelf->update({
isHidden => 1,
});
return $newSelf;
}
#-------------------------------------------------------------------
=head2 canAdd ($session)
This functions as a class or an object method. It sets the subclassGroupId to 7