Check is against whether MKWS has authenticated (onto a Service Proxy)
authorMike Taylor <mike@indexdata.com>
Fri, 8 Aug 2014 11:02:46 +0000 (12:02 +0100)
committerMike Taylor <mike@indexdata.com>
Fri, 8 Aug 2014 11:02:46 +0000 (12:02 +0100)
rather than whether the Service Proxy is intended to be used.

src/mkws-widget-categories.js

index a11e522..339e28b 100644 (file)
@@ -1,8 +1,8 @@
 mkws.registerWidgetType('Categories', function() {
   var that = this;
 
-  if (!this.config.use_service_proxy) {
-    alert("can't use categories widget without Service Proxy");
+  if (!mkws.authenticated) {
+    alert("can't use categories widget when not authenticated");
     return;
   }