diff --git a/src/controllers/admin.js b/src/controllers/admin.js index 0928975dbe..6666d0a950 100644 --- a/src/controllers/admin.js +++ b/src/controllers/admin.js @@ -270,7 +270,7 @@ adminController.extend.widgets = function(req, res, next) { for (var w in widgetData.widgets) { if (widgetData.widgets.hasOwnProperty(w)) { // if this gets anymore complicated, it needs to be a template - widgetData.widgets[w].content += "

"; + widgetData.widgets[w].content += "

"; } } diff --git a/src/widgets.js b/src/widgets.js index 1755ab9cb5..0390b2d1f0 100644 --- a/src/widgets.js +++ b/src/widgets.js @@ -30,7 +30,7 @@ var async = require('async'), async.map(widgetsByLocation[location], function(widget, next) { - if (!widget || !widget.data || (!!widget.data['registered-only'] && uid === 0)) { + if (!widget || !widget.data || (!!widget.data['hide-registered'] && uid !== 0) || (!!widget.data['hide-guests'] && uid === 0)) { return next(); }