mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 23:45:45 +01:00
Made hiding widgets for guests/registered sensible.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user