diff options
author | Yorhel <git@yorhel.nl> | 2014-10-16 14:55:53 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2014-10-16 14:55:53 +0200 |
commit | be93706e30414ce8c32d165844cb67895ef0c7d6 (patch) | |
tree | 63bda9912dc4bf5c5d0d1173d9c39103a319bde6 /lib/VNDB/Handler/Traits.pm | |
parent | 73268c92ddbd791e8375cdfab6ccdd3fee01329e (diff) |
Completely get rid of the old charedit perm flag
Diffstat (limited to 'lib/VNDB/Handler/Traits.pm')
-rw-r--r-- | lib/VNDB/Handler/Traits.pm | 6 |
1 files changed, 3 insertions, 3 deletions
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', ''); |