From e76b598e0f63bc3a1c398a9293aba46d59ee92b1 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Fri, 15 Mar 2019 20:20:42 +0100 Subject: [PATCH] FIX: ensures add/remove btn is shown if you can only invite (#7185) --- .../discourse/widgets/private-message-map.js.es6 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/widgets/private-message-map.js.es6 b/app/assets/javascripts/discourse/widgets/private-message-map.js.es6 index 1ce3119a75f..64274c49294 100644 --- a/app/assets/javascripts/discourse/widgets/private-message-map.js.es6 +++ b/app/assets/javascripts/discourse/widgets/private-message-map.js.es6 @@ -154,7 +154,11 @@ export default createWidget("private-message-map", { const result = [h(`div.participants${hideNamesClass}`, participants)]; const controls = []; - if (attrs.canRemoveAllowedUsers || attrs.canRemoveSelfId) { + if ( + attrs.canInvite || + attrs.canRemoveAllowedUsers || + attrs.canRemoveSelfId + ) { controls.push( this.attach("button", { action: "toggleEditing",