fix: navigation shows toolbar for users who can't edit it

This commit is contained in:
Graham Knop 2007-07-19 20:40:44 +00:00
parent 75457b765d
commit 57e73175ae
2 changed files with 4 additions and 0 deletions

View file

@ -297,6 +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;
if ($self->getToolbarState) {
my $returnUrl;
if ($self->session->asset) {