Skip to content
Permalink
Browse files

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

  • Loading branch information...
jjaffeux committed Mar 15, 2019
1 parent f7875ea commit e76b598e0f63bc3a1c398a9293aba46d59ee92b1
Showing with 5 additions and 1 deletion.
  1. +5 −1 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",

1 comment on commit e76b598

@discoursebot

This comment has been minimized.

Copy link

commented on e76b598 Mar 15, 2019

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

https://meta.discourse.org/t/add-remove-user-on-private-discussion-not-available-when-creator/111724/4

Please sign in to comment.
You can’t perform that action at this time.