fixed #10056: YUI javascripts included while adminOff (BNC)
This commit is contained in:
parent
d6d5009402
commit
18212d7a66
2 changed files with 3 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue