From 141b8b67ff4cbe67778ff6815a51f49834e290b9 Mon Sep 17 00:00:00 2001
From: Michi302 <michi302@michi302.de>
Date: Mon, 28 Dec 2015 15:50:44 +0100
Subject: [PATCH] Make single user API endpoint return Entities::User instead
 of Entities::UserBasic

---
 doc/api/users.md | 7 +++++++
 lib/api/users.rb | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/doc/api/users.md b/doc/api/users.md
index 66d2fd525..773fe36d2 100644
--- a/doc/api/users.md
+++ b/doc/api/users.md
@@ -123,6 +123,13 @@ Parameters:
   "name": "John Smith",
   "state": "active",
   "avatar_url": "http://localhost:3000/uploads/user/avatar/1/cd8.jpeg",
+  "created_at": "2012-05-23T08:00:58Z",
+  "is_admin": false,
+  "bio": null,
+  "skype": "",
+  "linkedin": "",
+  "twitter": "",
+  "website_url": ""
 }
 ```
 
diff --git a/lib/api/users.rb b/lib/api/users.rb
index 3400f0713..0d7813428 100644
--- a/lib/api/users.rb
+++ b/lib/api/users.rb
@@ -39,7 +39,7 @@ module API
         if current_user.is_admin?
           present @user, with: Entities::UserFull
         else
-          present @user, with: Entities::UserBasic
+          present @user, with: Entities::User
         end
       end
 
-- 
2.30.9