summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/Tags.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-05-03 08:38:12 +0200
committerYorhel <git@yorhel.nl>2009-05-03 08:38:31 +0200
commitd8c2e20531a165064e32d96afa22c81f479184d7 (patch)
tree13cefa0f432f0eb73ba39a5fb0c27314d77f6ece /lib/VNDB/Handler/Tags.pm
parent8c4beccc25641f72ad3312324734b6f243ea9fd8 (diff)
Don't allow tag modification of hidden VNs
Diffstat (limited to 'lib/VNDB/Handler/Tags.pm')
-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 4c5aca12..d10de195 100644
--- a/lib/VNDB/Handler/Tags.pm
+++ b/lib/VNDB/Handler/Tags.pm
@@ -419,7 +419,7 @@ sub vntagmod {
my($self, $vid) = @_;
my $v = $self->dbVNGet(id => $vid)->[0];
- return 404 if !$v;
+ return 404 if !$v || $v->{hidden};
return $self->htmlDenied if !$self->authCan('tag');