Revision 733f013d snf-astakos-app/astakos/im/functions.py

b/snf-astakos-app/astakos/im/functions.py
505 505

  
506 506
def enroll_member_by_email(project_id, email, request_user=None, reason=None):
507 507
    try:
508
        user = AstakosUser.objects.verified().get(email=email)
508
        user = AstakosUser.objects.accepted().get(email=email)
509 509
        return enroll_member(project_id, user, request_user, reason=reason)
510 510
    except AstakosUser.DoesNotExist:
511
        raise ProjectConflict(astakos_messages.UNKNOWN_USERS)
511
        raise ProjectConflict(astakos_messages.UNKNOWN_USERS % email)
512 512

  
513 513

  
514 514
def enroll_member(project_id, user, request_user=None, reason=None):

Also available in: Unified diff