summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/Tags.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2010-01-24 15:19:38 +0100
committerYorhel <git@yorhel.nl>2010-01-24 15:19:38 +0100
commit363d4750f04806775513371b027f9460609eab1a (patch)
treea37302aa3c72bd9f367b0c388e093dc13394494f /lib/VNDB/Handler/Tags.pm
parentd7815efc3a99aecc61c5ac1d9833de0f448b697f (diff)
Handler::Tags: Only allow tagmods to create top-level tags
The current error message isn't really intuitive, though...
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 612b603d..aa46f5b9 100644
--- a/lib/VNDB/Handler/Tags.pm
+++ b/lib/VNDB/Handler/Tags.pm
@@ -191,7 +191,7 @@ sub tagedit {
{ name => 'meta', required => 0, default => 0 },
{ name => 'alias', required => 0, maxlength => 1024, default => '', regex => [ qr/^[^,]+$/s, 'No comma allowed in aliases' ] },
{ name => 'description', required => 0, maxlength => 1024, default => '' },
- { name => 'parents', required => 0, default => '' },
+ { name => 'parents', required => !$self->authCan('tagmod'), default => '' },
{ name => 'merge', required => 0, default => '' },
);
my @aliases = split /[\t\s]*\n[\t\s]*/, $frm->{alias};