debian-mirror-gitlab/app/services/users/ban_service.rb
2023-06-20 00:43:36 +05:30

21 lines
306 B
Ruby

# frozen_string_literal: true
module Users
class BanService < BannedUserBaseService
private
def update_user(user)
user.ban
end
def valid_state?(user)
user.active?
end
def action
:ban
end
end
end
Users::BanService.prepend_mod_with('Users::BanService')