hides toolbar when user can't edit
This commit is contained in:
parent
44a182ee0d
commit
0c64c4f386
1 changed files with 1 additions and 0 deletions
|
|
@ -862,6 +862,7 @@ Returns a toolbar with a set of icons that hyperlink to functions that delete, e
|
|||
|
||||
sub getToolbar {
|
||||
my $self = shift;
|
||||
return undef unless $self->canEdit;
|
||||
return $self->{_toolbar} if (exists $self->{_toolbar});
|
||||
my $i18n = WebGUI::International->new($self->session, "Asset");
|
||||
my $toolbar = $self->session->icon->delete('func=delete',$self->get("url"),$i18n->get(43));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue