Revert "FIX: when creating new PM username/groupname should be case-insensitive"

This reverts commit 2be79d94f5.

This is affecting multiple code path. Investigating.
This commit is contained in:
Arpit Jalan
2020-05-25 20:10:14 +05:30
parent 30849c8b37
commit 302b37c805
3 changed files with 6 additions and 6 deletions

View File

@@ -211,7 +211,7 @@ class TopicCreator
names = usernames.split(',').flatten
len = 0
User.includes(:user_option).where(username_lower: names).find_each do |user|
User.includes(:user_option).where(username: names).find_each do |user|
check_can_send_permission!(topic, user)
@added_users << user
topic.topic_allowed_users.build(user_id: user.id)