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

@ -1,4 +1,5 @@
7.7.2
- fixed #10056: YUI javascripts included while adminOff (BNC)
- fixed a bug that required you to hit "update cart" before the checkout
button would appear
- fixed #9955: Matrix alpha sort is backwards

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) {