From 596714f864c09d752fc3c72177afaa0138020d6f Mon Sep 17 00:00:00 2001 From: Yorhel Date: Sun, 16 Aug 2009 11:07:38 +0200 Subject: L10N: Converted user ranks and language names User ranks are easy... but the language names are used everywhere! --- lib/VNDB/Util/Auth.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/VNDB/Util/Auth.pm') 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]}]; } -- cgit v1.2.3