2020-01-26 18:08:47 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module API
|
|
|
|
module Entities
|
|
|
|
class UserWithAdmin < UserPublic
|
|
|
|
expose :admin?, as: :is_admin
|
2020-05-28 09:08:05 +00:00
|
|
|
expose :note
|
2020-01-26 18:08:47 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2020-10-03 00:08:46 +00:00
|
|
|
|
2021-05-11 21:10:21 +00:00
|
|
|
API::Entities::UserWithAdmin.prepend_mod_with('API::Entities::UserWithAdmin')
|