mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
closes #6093
This commit is contained in:
@@ -10,13 +10,13 @@ var helpers = require('./helpers');
|
|||||||
|
|
||||||
exports.get = function (req, res, next) {
|
exports.get = function (req, res, next) {
|
||||||
async.waterfall([
|
async.waterfall([
|
||||||
function (next) {
|
function (_next) {
|
||||||
plugins.fireHook('filter:composer.build', {
|
plugins.fireHook('filter:composer.build', {
|
||||||
req: req,
|
req: req,
|
||||||
res: res,
|
res: res,
|
||||||
next: next,
|
next: next,
|
||||||
templateData: {},
|
templateData: {},
|
||||||
}, next);
|
}, _next);
|
||||||
},
|
},
|
||||||
function (data) {
|
function (data) {
|
||||||
if (data.templateData.disabled) {
|
if (data.templateData.disabled) {
|
||||||
|
|||||||
Reference in New Issue
Block a user