summaryrefslogtreecommitdiff
path: root/services/json_auth.esp
diff options
context:
space:
mode:
Diffstat (limited to 'services/json_auth.esp')
-rw-r--r--services/json_auth.esp8
1 files changed, 7 insertions, 1 deletions
diff --git a/services/json_auth.esp b/services/json_auth.esp
index 2d58b6e2af..0fdd98037d 100644
--- a/services/json_auth.esp
+++ b/services/json_auth.esp
@@ -1,7 +1,13 @@
<%
/* Return true to allow access; false otherwise */
-function json_authenticate(serviceComponents, method)
+function json_authenticate(serviceComponents, method, scriptTransportId)
{
+ // Don't allow any access via ScriptTransport, for now.
+ if (scriptTransportId != jsonrpc.Constant.ScriptTransport.NotInUse)
+ {
+ return false;
+ }
+
return true;
}