Skip to content

Commit

Permalink
fix: LEAP-1727: send down less info to superusers on version page
Browse files Browse the repository at this point in the history
  • Loading branch information
jombooth committed Dec 16, 2024
1 parent b876970 commit bd8e18d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion label_studio/core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bd8e18d

Please sign in to comment.