Prevent Event, WikiPage and Thread from being pasted places where they don't

belong.  This allows chained method calls to "getMyParent", getParent, getWiki, getCalendar, etc.
to work.
Adds the new canPaste and validParent method to Asset and AssetClipboard.
This commit is contained in:
Colin Kuskie 2009-02-03 04:43:11 +00:00
parent 151ebbde09
commit 99d6796675
6 changed files with 75 additions and 22 deletions

View file

@ -48,7 +48,8 @@ paste a wiki page anywhere else but a wiki master.
=cut
sub canPaste {
return 1;
my $self = shift;
return $self->validParent($self->session); ##Lazy call to a class method
}
#-------------------------------------------------------------------