From acded2799557e154841fb030908efa0e3f0e450f Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Fri, 9 Apr 2010 15:04:49 -0700 Subject: [PATCH] Pass myself along as the asset to check for valid parentage. --- lib/WebGUI/AssetClipboard.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WebGUI/AssetClipboard.pm b/lib/WebGUI/AssetClipboard.pm index 59b2746b2..acb987def 100644 --- a/lib/WebGUI/AssetClipboard.pm +++ b/lib/WebGUI/AssetClipboard.pm @@ -47,7 +47,7 @@ paste a wiki page anywhere else but a wiki master. sub canPaste { my $self = shift; - return $self->validParent($self->session); ##Lazy call to a class method + return $self->validParent($self->session, $self); ##Lazy call to a class method } #-------------------------------------------------------------------