Skip to content

Node.js based forum software built for the modern web

closes #1391

psychobunnybd59134cf034
diff --git a/src/widgets.js b/src/widgets.js
index 62e7530b2c..8cb54f6fb9 100644
--- a/src/widgets.js
+++ b/src/widgets.js
@@ -29,6 +29,10 @@ var async = require('async'),
var widgets = data.global.concat(data.local);
async.eachSeries(widgets, function(widget, next) {
+ if (!!widget.data['registered-only'] && uid === 0) {
+ return next();
+ }
+
plugins.fireHook('filter:widget.render:' + widget.widget, {
uid: uid,
area: area,