[04/10] testbot/Users: Disabled accounts are not waiting for approval.

Francois Gouget fgouget at codeweavers.com
Wed Apr 3 09:57:39 CDT 2013


---
 testbot/lib/WineTestBot/Users.pm |    8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/testbot/lib/WineTestBot/Users.pm b/testbot/lib/WineTestBot/Users.pm
index f29fd5e..cb3725b 100644
--- a/testbot/lib/WineTestBot/Users.pm
+++ b/testbot/lib/WineTestBot/Users.pm
@@ -1,4 +1,5 @@
 # Copyright 2009 Ge van Geldorp
+# Copyright 2013 Francois Gouget
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -88,12 +89,7 @@ sub WaitingForApproval
 {
   my $self = shift;
 
-  if ($self->Activated())
-  {
-    return !1;
-  }
-
-  return ! $self->ResetCode;
+  return $self->Active && !$self->Activated() && !$self->ResetCode;
 }
 
 sub GenerateResetCode
-- 
1.7.10.4




More information about the wine-patches mailing list