Skip to content

Commit

Permalink
FIX: ensures add/remove btn is shown if you can only invite (#7185)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjaffeux committed Mar 15, 2019
1 parent f7875ea commit e76b598
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -154,7 +154,11 @@ export default createWidget("private-message-map", {
const result = [h(`div.participants${hideNamesClass}`, participants)]; const result = [h(`div.participants${hideNamesClass}`, participants)];
const controls = []; const controls = [];


if (attrs.canRemoveAllowedUsers || attrs.canRemoveSelfId) { if (
attrs.canInvite ||
attrs.canRemoveAllowedUsers ||
attrs.canRemoveSelfId
) {
controls.push( controls.push(
this.attach("button", { this.attach("button", {
action: "toggleEditing", action: "toggleEditing",
Expand Down

1 comment on commit e76b598

@discoursebot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.