mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
closes #1391
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user