From fae5fe5c50e4c224ea1c3825f2bf9df0b96a578c Mon Sep 17 00:00:00 2001 From: psychobunny Date: Wed, 24 Feb 2016 18:04:14 -0500 Subject: [PATCH] closes #3837 --- src/controllers/accounts/edit.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/controllers/accounts/edit.js b/src/controllers/accounts/edit.js index 06eb2126b7..09e824ecd9 100644 --- a/src/controllers/accounts/edit.js +++ b/src/controllers/accounts/edit.js @@ -8,6 +8,7 @@ var winston = require('winston'); var db = require('../../database'); var user = require('../../user'); var meta = require('../../meta'); +var plugins = require('../../plugins'); var helpers = require('../helpers'); var accountHelpers = require('./helpers'); @@ -28,8 +29,15 @@ editController.get = function(req, res, callback) { userData.title = '[[pages:account/edit, ' + userData.username + ']]'; userData.breadcrumbs = helpers.buildBreadcrumbs([{text: userData.username, url: '/user/' + userData.userslug}, {text: '[[user:edit]]'}]); + userData.editButtons = []; - res.render('account/edit', userData); + plugins.fireHook('filter:user.account.edit', userData, function(err, userData) { + if (err) { + return next(err); + } + + res.render('account/edit', userData); + }); }); };