summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/Traits.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2011-08-21 10:19:45 +0200
committerYorhel <git@yorhel.nl>2011-08-21 10:19:45 +0200
commitdc5c17c32efb16cb92e4459fb53ae3ef775bc594 (patch)
treee6519faa2c80a9cf21356170b1bfc25782e75f00 /lib/VNDB/Handler/Traits.pm
parentcb790a0f12ea160331eaee74df5a3d84aa698120 (diff)
Bugfix: Don't display "group number" field on trait creation for non-mods
Diffstat (limited to 'lib/VNDB/Handler/Traits.pm')
-rw-r--r--lib/VNDB/Handler/Traits.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/Traits.pm b/lib/VNDB/Handler/Traits.pm
index 43b83090..f3abdfeb 100644
--- a/lib/VNDB/Handler/Traits.pm
+++ b/lib/VNDB/Handler/Traits.pm
@@ -219,7 +219,9 @@ sub traitedit {
[ textarea => short => 'description', name => mt '_traite_frm_desc' ],
[ input => short => 'parents', name => mt '_traite_frm_parents' ],
[ static => content => mt '_traite_frm_parents_msg' ],
- [ input => short => 'order', name => mt('_traite_frm_gorder'), width => 50, post => ' '.mt('_traite_frm_gorder_msg') ],
+ $self->authCan('tagmod') ? (
+ [ input => short => 'order', name => mt('_traite_frm_gorder'), width => 50, post => ' '.mt('_traite_frm_gorder_msg') ],
+ ) : (),
]);
$self->htmlFooter;