Fixed bug in access.py concerning host checks.
Patch by: Lennard de Rijk
Reviewed by: to-be-reviewed
--- 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)