app/soc/views/helper/access.py
changeset 943 897d9efdb728
parent 942 2250bb08f8e2
child 948 bd956f419ad9
equal deleted inserted replaced
942:2250bb08f8e2 943:897d9efdb728
   394 
   394 
   395   checkAgreesToSiteToS(request, args, kwargs)
   395   checkAgreesToSiteToS(request, args, kwargs)
   396 
   396 
   397   user = user_logic.getForCurrentAccount()
   397   user = user_logic.getForCurrentAccount()
   398 
   398 
       
   399   if kwargs.get('scope_path'):
       
   400     scope_path = kwargs['scope_path']
       
   401   else:
       
   402     scope_path = kwargs['link_id']
       
   403 
   399   fields = {'user' : user,
   404   fields = {'user' : user,
   400             'scope_path' : kwargs['link_id'],
   405             'scope_path' : scope_path,
   401             'state' : 'active'}
   406             'state' : 'active'}
   402 
   407 
   403   club_admin_entity = club_admin_logic.getForFields(fields, unique=True)
   408   club_admin_entity = club_admin_logic.getForFields(fields, unique=True)
   404 
   409 
   405   if club_admin_entity:
   410   if club_admin_entity: