summaryrefslogtreecommitdiff
path: root/lib/VNDB/Util/Auth.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-08-16 11:07:38 +0200
committerYorhel <git@yorhel.nl>2009-08-17 16:27:15 +0200
commit596714f864c09d752fc3c72177afaa0138020d6f (patch)
tree9409a0aeb6a75c54f0b853456589e5cc2c651c9f /lib/VNDB/Util/Auth.pm
parent5684e4821c0e0bdffa523e886e6644649e8f519a (diff)
L10N: Converted user ranks and language names
User ranks are easy... but the language names are used everywhere!
Diffstat (limited to 'lib/VNDB/Util/Auth.pm')
-rw-r--r--lib/VNDB/Util/Auth.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Util/Auth.pm b/lib/VNDB/Util/Auth.pm
index ad225d92..c4daffd9 100644
--- a/lib/VNDB/Util/Auth.pm
+++ b/lib/VNDB/Util/Auth.pm
@@ -83,7 +83,7 @@ sub authInfo {
sub authCan {
my($self, $act) = @_;
my $r = $self->{_auth}{rank}||0;
- return scalar grep $_ eq $act, @{$self->{user_ranks}[$r]}[1..$#{$self->{user_ranks}[$r]}];
+ return scalar grep $_ eq $act, @{$self->{user_ranks}[$r]}[0..$#{$self->{user_ranks}[$r]}];
}