From: Mike Taylor Date: Fri, 8 Aug 2014 11:02:46 +0000 (+0100) Subject: Check is against whether MKWS has authenticated (onto a Service Proxy) X-Git-Tag: 1.0.0~348 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=041d44e48305f5173bb7bfde2c6faaefdf0917ce;p=mkws-moved-to-github.git Check is against whether MKWS has authenticated (onto a Service Proxy) rather than whether the Service Proxy is intended to be used. --- diff --git a/src/mkws-widget-categories.js b/src/mkws-widget-categories.js index a11e522..339e28b 100644 --- a/src/mkws-widget-categories.js +++ b/src/mkws-widget-categories.js @@ -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; }