Fixed an access related bug in checkIsClubAdminForClub.
Patch by: Lennard de Rijk
Reviewed by: to-be-reviewed
--- 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)