check mkws.authenticated only for SP config, MKWS-82
authorWolfram Schneider <wosch@indexdata.dk>
Wed, 18 Dec 2013 15:38:33 +0000 (15:38 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Wed, 18 Dec 2013 15:38:33 +0000 (15:38 +0000)
tools/htdocs/mkws.js

index 658f849..10a3915 100644 (file)
@@ -422,7 +422,7 @@ function onFormSubmitEventHandler()
 
 function newSearch(query, sort, targets)
 {
 
 function newSearch(query, sort, targets)
 {
-    if (!mkws.authenticated) {
+    if (mkws_config.use_service_proxy && !mkws.authenticated) {
        alert("searching before authentication");
        return;
     }
        alert("searching before authentication");
        return;
     }