mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
nav - enable / disable
This commit is contained in:
@@ -10,9 +10,6 @@ navigation.get = function(callback) {
|
||||
db.getSortedSetRange('navigation:enabled', 0, -1, function(err, data) {
|
||||
callback(err, data.map(function(item) {
|
||||
return JSON.parse(item);
|
||||
})
|
||||
.filter(function(item) {
|
||||
return item.enabled;
|
||||
}));
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user