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:
Dan Ungureanu 2022-02-21 23:57:17 +02:00 committed by GitHub
parent 90c3695ab0
commit 685d186351
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,10 @@ export default {
model: this.topic.category,
});
controller.setProperties({
allowInvites: this.canInviteTo && !this.inviteDisabled,
allowInvites:
this.currentUser.can_invite_to_forum &&
this.canInviteTo &&
!this.inviteDisabled,
topic: this.topic,
});
},