summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--lib/VNDB/Handler/Tags.pm2
2 files changed, 2 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0e3acf5e..bafe7e14 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,7 @@ git - ?
- Multi's announcements are colored in blue
- Abstracted parsing skin config files into a SkinFile module
- Automatically generate the skin credits on d7, by reading the skin files
+ - Only tagmods can create top-level tags
2.10 - 2010-01-10
- VN score on tag pages use plain averages instead of bayesian rating
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};