blob: d3df12200ffaba6ad6ba7ae3949c70a209e533c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
# frozen_string_literal: true
module API
module Entities
class UserWithAdmin < UserPublic
expose :admin?, as: :is_admin
end
end
end
API::Entities::UserWithAdmin.prepend_if_ee('EE::API::Entities::UserWithAdmin', with_descendants: true)
|