def METHOD_NAME(self, queryset, user, admin=False, member=False):
    """Add projects from where `user` is an `admin` or a `member`."""
    projects = AdminPermission.projects(
        user=user,
        admin=admin,
        member=member,
    )
    return queryset | projects