diff options
author | QCyph <dev@lived.nl> | 2011-08-24 17:44:21 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2011-08-24 18:01:20 +0200 |
commit | ac01c679dba58e81371f7dd57fe3c6df8b750302 (patch) | |
tree | 032765b8fb0e0e3010ff17f10ddfd45616b91982 /lib | |
parent | a68cf07e755ecc74a2233d354d4beed7a62c8a76 (diff) |
Util/CommonHTML.pm: fixed copy tab and edit message bugs on character page
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VNDB/Util/CommonHTML.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VNDB/Util/CommonHTML.pm b/lib/VNDB/Util/CommonHTML.pm index 691d9887..60e7b237 100644 --- a/lib/VNDB/Util/CommonHTML.pm +++ b/lib/VNDB/Util/CommonHTML.pm @@ -66,7 +66,7 @@ sub htmlMainTabs { end; } - if($type =~ /[rc]/ && $self->authCan('edit')) { + if($type eq 'r' && $self->authCan('edit') || $type eq 'c' && $self->authCan('charedit')) { li $sel eq 'copy' ? (class => 'tabselected') : (); a href => "/$id/copy", mt '_mtabs_copy'; end; @@ -328,7 +328,7 @@ sub htmlItemMessage { p class => 'locked'; lit mt '_itemmsg_login', '/u/login'; end; - } elsif(!$self->authCan('edit')) { + } elsif(!$self->authCan($type eq 'c' ? 'charedit' : 'edit')) { p class => 'locked', mt '_itemmsg_denied'; } } |