Made hiding widgets for guests/registered sensible.

This commit is contained in:
heart
2014-10-31 02:10:40 -04:00
parent e93398b647
commit c38ca146c7
2 changed files with 2 additions and 2 deletions

View File

@@ -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();
}