Oops, checkRights was completely broken due to a couple of typos...

This commit is contained in:
ian%hixie.ch 2004-02-01 14:30:31 +00:00
Родитель 3ac70a84e4
Коммит 19c6b34f3a
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -91,7 +91,7 @@ sub checkRights {
my $self = shift;
my ($right, $event) = @_;
return 1 if $self->isAdmin($event);
foreach my $user ($self->{"user$right"}) {
foreach my $user (@{$self->{"users$right"}}) {
return 1 if $user eq $event->{userName};
}
return 0;