FIX: ensures add/remove btn is shown if you can only invite (#7185)

FIX: ensures add/remove btn is shown if you can only invite (#7185)

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 1ce3119..64274c4 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",

GitHub sha: e76b598e

This commit has been mentioned on Discourse Meta. There might be relevant details there: