diff --git a/server/api.lua b/server/api.lua index c9b0d80..e298e2f 100644 --- a/server/api.lua +++ b/server/api.lua @@ -216,7 +216,7 @@ utils.exportHandler('AddMember', api.AddMember) ---@param password string ---@return boolean? function api.isPasswordCorrect(groupId, password) - local group = groups?[groupId] + local group = api.findGroupById(groupId) if not group then return lib.print.error('isPasswordCorrect was sent an invalid groupId :'..groupId)