debian-mirror-gitlab/app/services/spam/spam_constants.rb

26 lines
435 B
Ruby
Raw Normal View History

2020-05-24 23:13:21 +05:30
# frozen_string_literal: true
module Spam
module SpamConstants
2020-06-23 00:09:42 +05:30
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
2020-05-24 23:13:21 +05:30
end
end