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

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

20 lines
255 B
Ruby
Raw Normal View History

# 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