From 806e61b5e5c4b333b4a514b1a1425a8477bf7bbe Mon Sep 17 00:00:00 2001 From: Yorhel Date: Sun, 13 Sep 2009 14:25:26 +0200 Subject: Handler::Tags: Don't show "create childtag" link on denied tag pages --- lib/VNDB/Handler/Tags.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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; -- cgit v1.2.3