gitlab-org--gitlab-foss/app/services/users/ban_service.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
249 B
Ruby
Raw Normal View History

# 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