summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-09-13 14:25:26 +0200
committerYorhel <git@yorhel.nl>2009-09-13 14:25:26 +0200
commit806e61b5e5c4b333b4a514b1a1425a8477bf7bbe (patch)
treedf15dd06c3d593d0bc709e500314e8c7f9348b01 /lib
parentb2d2ecfb8f08c54e46d695df8285f03f2b1db3a6 (diff)
Handler::Tags: Don't show "create childtag" link on denied tag pages
Diffstat (limited to 'lib')
-rw-r--r--lib/VNDB/Handler/Tags.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/Tags.pm b/lib/VNDB/Handler/Tags.pm
index 59a9e401..84f7f447 100644
--- a/lib/VNDB/Handler/Tags.pm
+++ b/lib/VNDB/Handler/Tags.pm
@@ -70,7 +70,7 @@ sub tagpage {
}
div class => 'mainbox';
- a class => 'addnew', href => "/g$tag/add", mt '_tagp_addchild' if $self->authCan('tag');
+ a class => 'addnew', href => "/g$tag/add", mt '_tagp_addchild' if $self->authCan('tag') && $t->{state} != 1;
h1 $title;
p;