speed up HttpProxy in case where user is not allowed to view content
This commit is contained in:
parent
eef3a0b654
commit
a78932b3b2
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue