def current_user_owns_profile(profile):
    try:
        return current_user.id == profile.id
    except __HOLE__:  #Anonymous
        return False
dataset/ETHPy150Open Impactstory/total-impact-webapp/totalimpactwebapp/views.py/current_user_owns_profile