瀏覽代碼

Do not lowercase when checking meeting usernames

Penar Musaraj 4 年之前
父節點
當前提交
b36ca43829
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/controllers/bbb_client_controller.rb

+ 2 - 1
app/controllers/bbb_client_controller.rb

@@ -60,7 +60,8 @@ module BigBlue
       if data['response']['returncode'] == "SUCCESS"
         att = data['response']['attendees']['attendee']
         usernames = att.is_a?(Array) ? att.pluck("userID") : [att["userID"]]
-        users = User.where("lower(username) IN (?)", usernames)
+        users = User.where("username IN (?)", usernames)
+
         avatars = users.map do |s|
           {
             name: s.name || s.username,