Merge pull request #2506 from techAPJ/invite-patch-1
FEATURE: show Invite button to admin for private topics
This commit is contained in:
commit
bd13576dee
|
@ -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({
|
|||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue