Welcome to mirror list, hosted at ThFree Co, Russian Federation.

disallow_possible_spam_service.rb « users « services « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e31ba7ddff02a481ef0d0cd1b11beedb2e2336bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

module Users
  class DisallowPossibleSpamService < BaseService
    def initialize(current_user)
      @current_user = current_user
    end

    def execute(user)
      user.custom_attributes.by_key(UserCustomAttribute::ALLOW_POSSIBLE_SPAM).delete_all
    end
  end
end