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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
276 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
2022-06-21 17:19:12 +05:30
expose :namespace_id
2020-03-13 15:44:24 +05:30
end
end
end
2021-01-03 14:25:43 +05:30
2021-06-08 01:23:25 +05:30
API::Entities::UserWithAdmin.prepend_mod_with('API::Entities::UserWithAdmin')