mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 02:13:41 +08:00
FIX: Show invite button if users can be invited (#16014)
This used to be shown regardless new users could be invited to the forum.
This commit is contained in:
parent
90c3695ab0
commit
685d186351
|
@ -27,7 +27,10 @@ export default {
|
||||||
model: this.topic.category,
|
model: this.topic.category,
|
||||||
});
|
});
|
||||||
controller.setProperties({
|
controller.setProperties({
|
||||||
allowInvites: this.canInviteTo && !this.inviteDisabled,
|
allowInvites:
|
||||||
|
this.currentUser.can_invite_to_forum &&
|
||||||
|
this.canInviteTo &&
|
||||||
|
!this.inviteDisabled,
|
||||||
topic: this.topic,
|
topic: this.topic,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user