diff --git a/readthedocs/api/v2/views/footer_views.py b/readthedocs/api/v2/views/footer_views.py index 1dd433ec91b..b6a32130240 100644 --- a/readthedocs/api/v2/views/footer_views.py +++ b/readthedocs/api/v2/views/footer_views.py @@ -26,6 +26,8 @@ def get_version_compare_data(project, base_version=None): :param base_version: We assert whether or not the base_version is also the highest version in the resulting "is_highest" value. """ + if not project.show_version_warning: + return {'is_highest': False} versions_qs = Version.internal.public(project=project) # Take preferences over tags only if the project has at least one tag