mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 01:58:12 +08:00
FIX: don't suggest groups when inviting to a topic (#6105)
This commit is contained in:
parent
4765507585
commit
fa02df9985
|
@ -225,11 +225,6 @@ export default Ember.Controller.extend(ModalFunctionality, {
|
|||
return Group.findAll({ term: term, ignore_automatic: true });
|
||||
},
|
||||
|
||||
@computed("isPrivateTopic", "isMessage")
|
||||
includeMentionableGroups(isPrivateTopic, isMessage) {
|
||||
return !isPrivateTopic && !isMessage;
|
||||
},
|
||||
|
||||
@computed("isMessage", "emailOrUsername", "invitingExistingUserToTopic")
|
||||
successMessage(isMessage, emailOrUsername, invitingExistingUserToTopic) {
|
||||
if (this.get("hasGroups")) {
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
single=true
|
||||
allowAny=true
|
||||
excludeCurrentUser=true
|
||||
includeMentionableGroups=includeMentionableGroups
|
||||
includeMessageableGroups=isMessage
|
||||
hasGroups=hasGroups
|
||||
usernames=emailOrUsername
|
||||
|
|
Loading…
Reference in New Issue
Block a user