def is_user_context(context):
    'Indicates if the request context is a normal user.'
    if (not context):
        return False
    if context.is_admin:
        return False
    if ((not context.user_id) or (not context.project_id)):
        return False
    return True
Indicates if the request context is a normal user.
def is_user_context(context):
    
    if (not context):
        return False
    if context.is_admin:
        return False
    if ((not context.user_id) or (not context.project_id)):
        return False
    return True