From dbbbd53a4d139768ff552c98cf5c49801cf2c86e Mon Sep 17 00:00:00 2001 From: wh1te909 <7434746+wh1te909@users.noreply.github.com> Date: Fri, 5 Jul 2024 21:16:27 +0000 Subject: [PATCH] wording --- api/tacticalrmm/core/views.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/tacticalrmm/core/views.py b/api/tacticalrmm/core/views.py index cb685555..4baa0051 100644 --- a/api/tacticalrmm/core/views.py +++ b/api/tacticalrmm/core/views.py @@ -491,7 +491,9 @@ class TestRunServerScript(APIView): def post(self, request): core: CoreSettings = CoreSettings.objects.first() # type: ignore if not core.server_scripts_enabled: - return notify_error("This feature is disabled.") + return notify_error( + "This feature is disabled. It can be enabled in Global Settings." + ) stdout, stderr, execution_time, retcode = run_server_script( body=request.data["code"], @@ -525,7 +527,7 @@ def webterm_perms(request): # perms are actually enforced in the consumer core: CoreSettings = CoreSettings.objects.first() # type: ignore if not core.web_terminal_enabled: - ret = "This feature is disabled." + ret = "This feature is disabled. It can be enabled in Global Settings." return Response(ret, status=drf_status.HTTP_412_PRECONDITION_FAILED) return Response("ok")