From a425060cdd3ef53677aff1ec3422dd0e06abcab2 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Mon, 6 Apr 2015 20:53:58 +0530 Subject: [PATCH] FIX: user should not be able to invite himself to topic --- app/assets/javascripts/discourse/templates/modal/invite.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/templates/modal/invite.hbs b/app/assets/javascripts/discourse/templates/modal/invite.hbs index 4ff86a04b3a..e5e17e32e2f 100644 --- a/app/assets/javascripts/discourse/templates/modal/invite.hbs +++ b/app/assets/javascripts/discourse/templates/modal/invite.hbs @@ -10,7 +10,7 @@ {{else}} {{#if allowExistingMembers}} - {{user-selector single="true" allowAny=true usernames=emailOrUsername includeGroups="true" placeholderKey=placeholderKey}} + {{user-selector single="true" allowAny=true excludeCurrentUser="true" usernames=emailOrUsername includeGroups="true" placeholderKey=placeholderKey}} {{else}} {{text-field value=emailOrUsername placeholderKey="topic.invite_reply.email_placeholder"}} {{/if}}