Fixed bug in access.py concerning host checks.
authorLennard de Rijk <ljvderijk@gmail.com>
Sat, 24 Jan 2009 00:27:36 +0000
changeset 942 2250bb08f8e2
parent 941 6eac584ce14c
child 943 897d9efdb728
Fixed bug in access.py concerning host checks. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/views/helper/access.py
--- a/app/soc/views/helper/access.py	Sat Jan 24 00:07:34 2009 +0000
+++ b/app/soc/views/helper/access.py	Sat Jan 24 00:27:36 2009 +0000
@@ -323,7 +323,7 @@
                                  unique=True)
 
   fields = {'user' : user,
-            'active' : True}
+            'state' : 'active'}
 
   host = host_logic.getForFields(fields, unique=True)
 
@@ -356,7 +356,7 @@
 
   fields = {'user' : user,
             'scope_path' : kwargs['scope_path'],
-            'active' : True}
+            'state' : 'active'}
 
   host = host_logic.getForFields(fields, unique=True)