equal
deleted
inserted
replaced
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: |