debian-mirror-gitlab/lib/api/entities/user_with_admin.rb

13 lines
250 B
Ruby
Raw Normal View History

2020-03-13 15:44:24 +05:30
# frozen_string_literal: true
module API
module Entities
class UserWithAdmin < UserPublic
expose :admin?, as: :is_admin
2020-06-23 00:09:42 +05:30
expose :note
2020-03-13 15:44:24 +05:30
end
end
end
2021-01-03 14:25:43 +05:30
API::Entities::UserWithAdmin.prepend_if_ee('EE::API::Entities::UserWithAdmin')