some ui improvements
This commit is contained in:
parent
902c18b52c
commit
4f96d670b9
3 changed files with 6 additions and 9 deletions
|
|
@ -215,7 +215,7 @@ sub prepareView {
|
|||
#-------------------------------------------------------------------
|
||||
sub view {
|
||||
my $self = shift;
|
||||
if ($self->{_viewVars}{showAdmin}) {
|
||||
if ($self->{_viewVars}{showAdmin} && (($self->canEditIfLocked && $self->session->scratch->get("versionTag") eq $self->get("tagId")) || !$self->isLocked)) {
|
||||
# under normal circumstances we don't put HTML stuff in our code, but this will make it much easier
|
||||
# for end users to work with our templates
|
||||
$self->{_viewVars}{"dragger.icon"} = $self->session->icon->drag();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue