From f3f6fbb43a889d53670e2ab8f4263fcd234d52b0 Mon Sep 17 00:00:00 2001 From: "ian%hixie.ch" Date: Sun, 1 Feb 2004 14:30:31 +0000 Subject: [PATCH] Oops, checkRights was completely broken due to a couple of typos... git-svn-id: svn://10.0.0.236/trunk@152143 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/mozbot/BotModules/Quotes.bm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/webtools/mozbot/BotModules/Quotes.bm b/mozilla/webtools/mozbot/BotModules/Quotes.bm index e0633d8e7a0..bad8d5086e1 100644 --- a/mozilla/webtools/mozbot/BotModules/Quotes.bm +++ b/mozilla/webtools/mozbot/BotModules/Quotes.bm @@ -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;