Check is against whether MKWS has authenticated (onto a Service Proxy)
[mkws-moved-to-github.git] / 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;
   }