From be93706e30414ce8c32d165844cb67895ef0c7d6 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Thu, 16 Oct 2014 14:55:53 +0200 Subject: Completely get rid of the old charedit perm flag --- lib/VNDB/Handler/Traits.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/VNDB/Handler/Traits.pm') diff --git a/lib/VNDB/Handler/Traits.pm b/lib/VNDB/Handler/Traits.pm index d71f6ddc..6cad44a0 100644 --- a/lib/VNDB/Handler/Traits.pm +++ b/lib/VNDB/Handler/Traits.pm @@ -57,7 +57,7 @@ sub traitpage { } div class => 'mainbox'; - a class => 'addnew', href => "/i$trait/add", mt '_traitp_addchild' if $self->authCan('charedit') && $t->{state} != 1; + a class => 'addnew', href => "/i$trait/add", mt '_traitp_addchild' if $self->authCan('edit') && $t->{state} != 1; h1 $title; parenttags($t, mt('_traitp_indexlink'), 'i'); @@ -132,7 +132,7 @@ sub traitedit { $trait = undef; } - return $self->htmlDenied if !$self->authCan('charedit') || $trait && !$self->authCan('tagmod'); + return $self->htmlDenied if !$self->authCan('edit') || $trait && !$self->authCan('tagmod'); my $t = $trait && $self->dbTraitGet(id => $trait, what => 'parents(1) addedby')->[0]; return $self->resNotFound if $trait && !$t; @@ -327,7 +327,7 @@ sub traitindex { $self->htmlHeader(title => mt '_traiti_title'); div class => 'mainbox'; - a class => 'addnew', href => "/i/new", mt '_traiti_create' if $self->authCan('charedit'); + a class => 'addnew', href => "/i/new", mt '_traiti_create' if $self->authCan('edit'); h1 mt '_traiti_search'; form action => '/i/list', 'accept-charset' => 'UTF-8', method => 'get'; $self->htmlSearchBox('i', ''); -- cgit v1.2.3