debian-mirror-gitlab/app/services/spam/spam_constants.rb
2020-06-23 00:09:42 +05:30

25 lines
435 B
Ruby

# frozen_string_literal: true
module Spam
module SpamConstants
CONDITIONAL_ALLOW = "conditional_allow"
DISALLOW = "disallow"
ALLOW = "allow"
BLOCK_USER = "block"
SUPPORTED_VERDICTS = {
BLOCK_USER => {
priority: 1
},
DISALLOW => {
priority: 2
},
CONDITIONAL_ALLOW => {
priority: 3
},
ALLOW => {
priority: 4
}
}.freeze
end
end