summaryrefslogtreecommitdiff
path: root/app/services/users/unban_service.rb
blob: 753a02fa752209c90ce6d7c987457271f4a270d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

module Users
  class UnbanService < BannedUserBaseService
    private

    def update_user(user)
      user.unban
    end

    def valid_state?(user)
      user.banned?
    end

    def action
      :unban
    end
  end
end