summaryrefslogtreecommitdiff
path: root/lib
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
parent8c4beccc25641f72ad3312324734b6f243ea9fd8 (diff)
Don't allow tag modification of hidden VNs
Diffstat (limited to 'lib')
-rw-r--r--lib/VNDB/Handler/Tags.pm2
-rw-r--r--lib/VNDB/Util/CommonHTML.pm2
2 files changed, 2 insertions, 2 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');
diff --git a/lib/VNDB/Util/CommonHTML.pm b/lib/VNDB/Util/CommonHTML.pm
index 6e50632d..744216c1 100644
--- a/lib/VNDB/Util/CommonHTML.pm
+++ b/lib/VNDB/Util/CommonHTML.pm
@@ -53,7 +53,7 @@ sub htmlMainTabs {
end;
}
- if($type eq 'v' && $self->authCan('tag')) {
+ if($type eq 'v' && $self->authCan('tag') && !$obj->{hidden}) {
li $sel eq 'tagmod' ? (class => 'tabselected') : ();
a href => "/$id/tagmod", 'modify tags';
end;