Merge pull request #2506 from techAPJ/invite-patch-1

FEATURE: show Invite button to admin for private topics
This commit is contained in:
Jeff Atwood 2014-07-04 03:24:31 -07:00
commit bd13576dee
1 changed files with 1 additions and 3 deletions

View File

@ -22,7 +22,7 @@ export default 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') && !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(InviteReplyButton);
} }
this.attachViewClass(StarButton); this.attachViewClass(StarButton);
@ -44,5 +44,3 @@ export default Discourse.ContainerView.extend({
} }
} }
}); });