summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/Producers.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2008-11-13 15:36:45 +0100
committerYorhel <git@yorhel.nl>2008-11-13 15:36:45 +0100
commitb228de9cd174756aefdf90db1d04a0643f7d7d8b (patch)
tree29b48befc7711926df75c646cf1391d9924d3f5b /lib/VNDB/Handler/Producers.pm
parent71819ab764a1c4b6eafb83a0123286e18b6db8fd (diff)
Added edit lock indicator + edit tab hides when locked/hidden
Diffstat (limited to 'lib/VNDB/Handler/Producers.pm')
-rw-r--r--lib/VNDB/Handler/Producers.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/Producers.pm b/lib/VNDB/Handler/Producers.pm
index 90e69930..d15495c0 100644
--- a/lib/VNDB/Handler/Producers.pm
+++ b/lib/VNDB/Handler/Producers.pm
@@ -23,6 +23,7 @@ sub page {
$self->htmlHeader(title => $p->{name});
$self->htmlMainTabs(p => $p);
div class => 'mainbox producerpage';
+ p class => 'locked', 'Locked for editing' if $p->{locked};
h1 $p->{name};
h2 class => 'alttitle', $p->{original} if $p->{original};
p class => 'center';
@@ -67,7 +68,7 @@ sub edit {
my $p = $self->dbProducerGet(id => $pid)->[0];
return 404 if !$p->{id};
- return $self->htmlDenied if !$self->authCan('edit') || $p->{locked} && !$self->authCan('lock');
+ return $self->htmlDenied if !$self->authCan('edit') || $p->{locked} && !$self->authCan('lock') || $p->{hidden} && !$self->authCan('del');
my $frm;