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:
parent
151ebbde09
commit
99d6796675
6 changed files with 75 additions and 22 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue