From 4649494e53731d3c82e19b54fff52b65895583ff Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Fri, 4 Jul 2014 15:09:07 +0530 Subject: [PATCH] FEATURE: show Invite button to admin for private topics --- .../javascripts/discourse/views/topic-footer-buttons.js.es6 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/assets/javascripts/discourse/views/topic-footer-buttons.js.es6 b/app/assets/javascripts/discourse/views/topic-footer-buttons.js.es6 index 67cf9e879e1..6061b4cd952 100644 --- a/app/assets/javascripts/discourse/views/topic-footer-buttons.js.es6 +++ b/app/assets/javascripts/discourse/views/topic-footer-buttons.js.es6 @@ -22,7 +22,7 @@ export default Discourse.ContainerView.extend({ if (Discourse.User.current()) { if (!topic.get('isPrivateMessage')) { // We hide some controls from private messages - if (this.get('topic.details.can_invite_to') && !this.get('topic.category.read_restricted')) { + if (this.get('topic.details.can_invite_to') && (!this.get('topic.category.read_restricted') || Discourse.User.currentProp('admin'))) { this.attachViewClass(InviteReplyButton); } this.attachViewClass(StarButton); @@ -44,5 +44,3 @@ export default Discourse.ContainerView.extend({ } } }); - -