some ui improvements

This commit is contained in:
JT Smith 2006-03-14 23:42:28 +00:00
parent 902c18b52c
commit 4f96d670b9
3 changed files with 6 additions and 9 deletions

View file

@ -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();