From bd8e18d3f67ea67576c5d328b41816bb93551e90 Mon Sep 17 00:00:00 2001 From: Jo Booth Date: Mon, 16 Dec 2024 16:09:23 -0500 Subject: [PATCH] fix: LEAP-1727: send down less info to superusers on version page --- label_studio/core/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/label_studio/core/views.py b/label_studio/core/views.py index 9e687533b75f..f9f1935d9a20 100644 --- a/label_studio/core/views.py +++ b/label_studio/core/views.py @@ -72,7 +72,7 @@ def version_page(request): # html / json response if request.path == '/version/': # other settings from backend - if request.user.is_superuser: + if not settings.CLOUD_INSTANCE and request.user.is_superuser: result['settings'] = { key: str(getattr(settings, key)) for key in dir(settings)