def METHOD_NAME(self, query=None, relations=False):
    if query is None:
        query = self.model.query
    if permissions.has_manager_permissions():
        if self.get_bool_parameter("with_pass_hash"):
            return [
                person.serialize(relations=relations)
                for person in query.all()
            ]
        else:
            return [
                person.serialize_safe(relations=relations)
                for person in query.all()
            ]
    else:
        return [
            person.present_minimal(relations=relations)
            for person in query.all()
        ]