debian-mirror-gitlab/app/services/users/unban_service.rb

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

22 lines
316 B
Ruby
Raw Normal View History

2021-10-27 15:23:28 +05:30
# frozen_string_literal: true
module Users
class UnbanService < BannedUserBaseService
private
def update_user(user)
2021-11-11 11:23:49 +05:30
user.unban
end
def valid_state?(user)
user.banned?
2021-10-27 15:23:28 +05:30
end
def action
:unban
end
end
end
2023-06-20 00:43:36 +05:30
Users::UnbanService.prepend_mod_with('Users::UnbanService')