better validation for bulk update requests

This commit is contained in:
r888888888
2016-01-28 17:39:01 -08:00
parent b8f14b6fee
commit e6b16e8fe5
7 changed files with 98 additions and 3 deletions

View File

@@ -348,6 +348,11 @@ module Danbooru
"zDMSATq0W3hmA5p3rKTgD"
end
# impose additional requirements to create tag aliases and implications
def strict_tag_requirements
true
end
# For downloads, if the host matches any of these IPs, block it
def banned_ip_for_download?(ip_addr)
raise ArgumentError unless ip_addr.is_a?(IPAddr)