def METHOD_NAME(user, page):
    """
    This predicate checks whether the given user can publish all pages.
    :param user: The user who's permission should be checked
    :type user: ~django.contrib.auth.models.User
    :param page: The page parameter is used for the region check
    :type page: ~integreat_cms.cms.models.pages.page.Page
    :return: Whether or not ``user`` can publish all pages
    :rtype: bool
    """
    if not (user.is_superuser or user.is_staff):
        if page and page.id and page.region not in user.regions.all():
            return False
    return user.has_perm("cms.publish_page")