зеркало из https://github.com/mozilla/pjs.git
Oops, checkRights was completely broken due to a couple of typos...
This commit is contained in:
Родитель
3ac70a84e4
Коммит
19c6b34f3a
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче