Merge pull request #3337 from techAPJ/patch-1

FIX: user should not be able to invite himself to topic
This commit is contained in:
Régis Hanol 2015-04-06 17:28:32 +02:00
commit 5cc0d65f31
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@
{{else}}
<label>{{inviteInstructions}}</label>
{{#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}}