diff --git a/NodeBB b/NodeBB index 3a50c46..804c792 160000 --- a/NodeBB +++ b/NodeBB @@ -1 +1 @@ -Subproject commit 3a50c4657295bfff702039191106972d1cfcdbff +Subproject commit 804c7927a4e291c653c5e978056f6f97eaf9cb50 diff --git a/plugins/nodebb-plugin-tdwtf-customizations/index.js b/plugins/nodebb-plugin-tdwtf-customizations/index.js index 00fa106..0b6ae0f 100644 --- a/plugins/nodebb-plugin-tdwtf-customizations/index.js +++ b/plugins/nodebb-plugin-tdwtf-customizations/index.js @@ -25,23 +25,6 @@ module.exports = { }).unref(); callback(); }, - "protectChats": function(req, res, next) { - if (req.route.path === '/user/:userslug/chats/:roomid?' || req.route.path === '/api/user/:userslug/chats/:roomid?') { - return User.getUidByUserslug(req.params.userslug, function(err, uid) { - if (err) { - return next(err); - } - - if (req.uid === uid) { - return next(); - } - - controllerHelpers.notAllowed(req, res); - }); - } - - next(); - }, "meta": function(tags, callback) { tags = tags.concat([{ name: 'google-site-verification', diff --git a/plugins/nodebb-plugin-tdwtf-customizations/plugin.json b/plugins/nodebb-plugin-tdwtf-customizations/plugin.json index 156e4f2..22dfdeb 100644 --- a/plugins/nodebb-plugin-tdwtf-customizations/plugin.json +++ b/plugins/nodebb-plugin-tdwtf-customizations/plugin.json @@ -4,7 +4,6 @@ "library": "index.js", "hooks": [ {"hook": "static:app.load", "method": "init"}, - {"hook": "filter:router.page", "method": "protectChats"}, {"hook": "filter:meta.getMetaTags", "method": "meta"}, {"hook": "filter:middleware.renderHeader", "method": "header"}, {"hook": "filter:post.edit", "method": "postEdit"},