debian-mirror-gitlab/lib/api/entities/user_with_admin.rb
2022-11-25 23:54:43 +05:30

14 lines
318 B
Ruby

# frozen_string_literal: true
module API
module Entities
class UserWithAdmin < UserPublic
expose :admin?, as: :is_admin
expose :note
expose :namespace_id
expose :created_by, with: UserBasic
end
end
end
API::Entities::UserWithAdmin.prepend_mod_with('API::Entities::UserWithAdmin')