From b06f405657ce54c59f6ba922a35dffd35dc64657 Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Wed, 16 Jul 2008 22:16:35 +0000 Subject: [PATCH] only generate toolbars in admin mode --- lib/WebGUI/Asset.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/WebGUI/Asset.pm b/lib/WebGUI/Asset.pm index 3689b246d..3601f1cdb 100644 --- a/lib/WebGUI/Asset.pm +++ b/lib/WebGUI/Asset.pm @@ -1894,7 +1894,9 @@ Executes what is necessary to make the view() method work with content chunking. sub prepareView { my $self = shift; - $self->{_toolbar} = $self->getToolbar; + if ($self->session->var->isAdminOn) { + $self->{_toolbar} = $self->getToolbar; + } my $style = $self->session->style; my @keywords = @{WebGUI::Keyword->new($self->session)->getKeywordsForAsset({asset=>$self, asArrayRef=>1})}; if (scalar @keywords) {