2022-08-24 23:10:55 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
# rubocop: disable Gitlab/NamespacedClass
|
2022-09-13 14:12:21 -04:00
|
|
|
class ImpersonationAccessTokenEntity < AccessTokenEntityBase
|
2022-08-24 23:10:55 -04:00
|
|
|
include Gitlab::Routing
|
|
|
|
|
|
|
|
expose :revoke_path do |token, _options|
|
|
|
|
revoke_admin_user_impersonation_token_path(token.user, token)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
# rubocop: enable Gitlab/NamespacedClass
|