app/soc/views/helper/access.py
changeset 943 897d9efdb728
parent 942 2250bb08f8e2
child 948 bd956f419ad9
--- a/app/soc/views/helper/access.py	Sat Jan 24 00:27:36 2009 +0000
+++ b/app/soc/views/helper/access.py	Sat Jan 24 10:18:30 2009 +0000
@@ -396,8 +396,13 @@
 
   user = user_logic.getForCurrentAccount()
 
+  if kwargs.get('scope_path'):
+    scope_path = kwargs['scope_path']
+  else:
+    scope_path = kwargs['link_id']
+
   fields = {'user' : user,
-            'scope_path' : kwargs['link_id'],
+            'scope_path' : scope_path,
             'state' : 'active'}
 
   club_admin_entity = club_admin_logic.getForFields(fields, unique=True)