def METHOD_NAME(user, obj):
    if user.is_superuser:
        return True
    project = _get_object_project(obj)
    if project is None:
        return False
    membership = _get_user_project_membership(user, project)
    if membership and membership.is_admin:
        return True
    return False