diff options
Diffstat (limited to 'lib/api/entities/user_with_admin.rb')
-rw-r--r-- | lib/api/entities/user_with_admin.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/api/entities/user_with_admin.rb b/lib/api/entities/user_with_admin.rb new file mode 100644 index 00000000000..c2f873ae802 --- /dev/null +++ b/lib/api/entities/user_with_admin.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +module API + module Entities + class UserWithAdmin < UserPublic + expose :admin?, as: :is_admin + end + end +end |