From a78932b3b2e4432e35efb6a507e9096ec92dc0b0 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Thu, 23 Mar 2006 00:18:52 +0000 Subject: [PATCH] speed up HttpProxy in case where user is not allowed to view content --- lib/WebGUI/Asset/Wobject/HttpProxy.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WebGUI/Asset/Wobject/HttpProxy.pm b/lib/WebGUI/Asset/Wobject/HttpProxy.pm index 8f38d2285..b51eb291f 100644 --- a/lib/WebGUI/Asset/Wobject/HttpProxy.pm +++ b/lib/WebGUI/Asset/Wobject/HttpProxy.pm @@ -362,8 +362,8 @@ sub view { sub www_view { my $self = shift; - my $output = $self->view; return $self->session->privilege->noAccess() unless $self->canView; + my $output = $self->view; # this is s a stop gap. we need to do something here that deals with the real www_view and caching, etc. if ($self->session->http->getMimeType() ne "text/html") { return $output;