summaryrefslogtreecommitdiff
path: root/lib/api/users.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-10-12 10:26:13 +0200
committerDouwe Maan <douwe@selenight.nl>2017-11-02 11:39:01 +0100
commitfbdf057898475653c847601f257e140494944f46 (patch)
tree66da6450d9c3cb0438561e53d0fc8ced2a514279 /lib/api/users.rb
parenta72d687931fa5be3b8828fa202e61d42c607dae1 (diff)
downloadgitlab-ce-fbdf057898475653c847601f257e140494944f46.tar.gz
Remove private_token from API user entity
Diffstat (limited to 'lib/api/users.rb')
-rw-r--r--lib/api/users.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/api/users.rb b/lib/api/users.rb
index b6f97a1eac2..d80b364bd09 100644
--- a/lib/api/users.rb
+++ b/lib/api/users.rb
@@ -507,9 +507,7 @@ module API
end
get do
entity =
- if sudo?
- Entities::UserWithPrivateDetails
- elsif current_user.admin?
+ if current_user.admin?
Entities::UserWithAdmin
else
Entities::UserPublic