diff options
author | evuez <helloevuez@gmail.com> | 2016-02-24 13:14:37 +0100 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-03-04 11:59:43 +0100 |
commit | b0d24ab1b52a78bf855a70886113b79707036029 (patch) | |
tree | 9361c8f927054ce3af525187d889aa731bcf71b2 /lib | |
parent | f8c4dc97230c520df077c1274fd8d88680da5242 (diff) | |
download | gitlab-ce-b0d24ab1b52a78bf855a70886113b79707036029.tar.gz |
Add fields to GET /users/* API endpoints for adminsevuez/gitlab-ce-add-info-user-api
Added fields are last_sign_in_at and confirmed_at.
They are available for GET /users/ and GET /users/:id for admins.
Closes #840
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/entities.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index b021db8fa5b..0779fb881a0 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -23,6 +23,8 @@ module API end class UserFull < User + expose :last_sign_in_at + expose :confirmed_at expose :email expose :theme_id, :color_scheme_id, :projects_limit, :current_sign_in_at expose :identities, using: Entities::Identity |