fixed #10056: YUI javascripts included while adminOff (BNC)

This commit is contained in:
Graham Knop 2009-03-31 22:01:39 +00:00
parent d6d5009402
commit 18212d7a66
2 changed files with 3 additions and 2 deletions

View file

@ -297,8 +297,8 @@ Returns a toolbar with a set of icons that hyperlink to functions that delete, e
sub getToolbar {
my $self = shift;
return
unless $self->canEdit;
return undef
unless $self->canEdit && $self->session->var->isAdminOn;
if ($self->getToolbarState) {
my $toolbar = '';
if ($self->canEditIfLocked) {