From 14e49269d674175606c6e89a3c17b90b8cf452d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Klabbers?= Date: Wed, 17 May 2017 14:07:38 +0200 Subject: [PATCH] Update UserControls.js Possibly c/p mistake with argument name. UserControls using argument discussion in controls method. --- js/forum/src/utils/UserControls.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/forum/src/utils/UserControls.js b/js/forum/src/utils/UserControls.js index a84207e24..5d001216e 100644 --- a/js/forum/src/utils/UserControls.js +++ b/js/forum/src/utils/UserControls.js @@ -18,11 +18,11 @@ export default { * @return {ItemList} * @public */ - controls(discussion, context) { + controls(user, context) { const items = new ItemList(); ['user', 'moderation', 'destructive'].forEach(section => { - const controls = this[section + 'Controls'](discussion, context).toArray(); + const controls = this[section + 'Controls'](user, context).toArray(); if (controls.length) { controls.forEach(item => items.add(item.itemName, item)); items.add(section + 'Separator', Separator.component());