fix: navigation shows toolbar for users who can't edit it
This commit is contained in:
parent
75457b765d
commit
57e73175ae
2 changed files with 4 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue