mirror of
https://github.com/discourse/discourse.git
synced 2025-04-25 20:54:26 +08:00
Merge pull request #3337 from techAPJ/patch-1
FIX: user should not be able to invite himself to topic
This commit is contained in:
commit
5cc0d65f31
@ -10,7 +10,7 @@
|
|||||||
{{else}}
|
{{else}}
|
||||||
<label>{{inviteInstructions}}</label>
|
<label>{{inviteInstructions}}</label>
|
||||||
{{#if allowExistingMembers}}
|
{{#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}}
|
{{else}}
|
||||||
{{text-field value=emailOrUsername placeholderKey="topic.invite_reply.email_placeholder"}}
|
{{text-field value=emailOrUsername placeholderKey="topic.invite_reply.email_placeholder"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user