Skip to content

A platform for community discussion. Free, open, simple.

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

Joffrey JAFFEUXe76b598e0f63
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",