mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 18:11:11 +08:00
UX: Show on IP lookup if MaxMind key is missing (#18993)
as discussed in https://meta.discourse.org/t/maxminddb-not-found-error/148512/7. shows a warning to the admin if no license for maxmind is found
This commit is contained in:
@ -1153,6 +1153,8 @@ RSpec.describe Report do
|
||||
freeze_time DateTime.parse("2017-03-01 12:00")
|
||||
|
||||
ip = [81, 2, 69, 142]
|
||||
# Assign a dummy MaxMind license key, which is now checked in open_db
|
||||
global_setting "maxmind_license_key", "dummy"
|
||||
|
||||
DiscourseIpInfo.open_db(File.join(Rails.root, "spec", "fixtures", "mmdb"))
|
||||
Resolv::DNS
|
||||
|
Reference in New Issue
Block a user