|
|
|
@ -29,7 +29,8 @@ var async = require('async'),
|
|
|
|
|
var widgets = data.global.concat(data.local);
|
|
|
|
|
|
|
|
|
|
async.eachSeries(widgets, function(widget, next) {
|
|
|
|
|
if (!!widget.data['registered-only'] && uid === 0) {
|
|
|
|
|
|
|
|
|
|
if (!widget || !widget.data || (!!widget.data['registered-only'] && uid === 0)) {
|
|
|
|
|
return next();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|