prevent sessions leaking when doing an export

This commit is contained in:
Graham Knop 2008-06-20 08:56:40 +00:00
parent 8be5eeb5f6
commit 3ab206ad48

View file

@ -280,6 +280,8 @@ sub exportAsHtml {
unless ( $self->canView($userId) ) {
$returnCode = 0;
$message = "can't view asset at URL " . $self->getUrl;
$exportSession->var->end;
$exportSession->close;
return ($returnCode, $message);
}