mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Hide the Invite button in topics in secured categories
This commit is contained in:
@@ -21,7 +21,7 @@ Discourse.TopicFooterButtonsView = Discourse.ContainerView.extend({
|
|||||||
if (Discourse.User.current()) {
|
if (Discourse.User.current()) {
|
||||||
if (!topic.get('isPrivateMessage')) {
|
if (!topic.get('isPrivateMessage')) {
|
||||||
// We hide some controls from private messages
|
// We hide some controls from private messages
|
||||||
if (this.get('topic.details.can_invite_to')) {
|
if (this.get('topic.details.can_invite_to') && !this.get('topic.category.read_restricted')) {
|
||||||
this.attachViewClass(Discourse.InviteReplyButton);
|
this.attachViewClass(Discourse.InviteReplyButton);
|
||||||
}
|
}
|
||||||
this.attachViewClass(Discourse.StarButton);
|
this.attachViewClass(Discourse.StarButton);
|
||||||
|
|||||||
Reference in New Issue
Block a user