summaryrefslogtreecommitdiff
path: root/lib/api/users.rb
diff options
context:
space:
mode:
authortiagonbotelho <tiagonbotelho@hotmail.com>2016-11-21 11:42:10 +0000
committertiagonbotelho <tiagonbotelho@hotmail.com>2016-12-07 14:42:51 +0000
commit8b379465a5be48c8062379a3dea8e58110c52d87 (patch)
tree8196abefc1b7b8389b877b4faaad55058d7bd06d /lib/api/users.rb
parente09c6df0682c499e221a0da41ac263482fbcf568 (diff)
downloadgitlab-ce-8b379465a5be48c8062379a3dea8e58110c52d87.tar.gz
Reenables /user API request to return private-token if user is admin and requested with sudo
Diffstat (limited to 'lib/api/users.rb')
-rw-r--r--lib/api/users.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/users.rb b/lib/api/users.rb
index bc2362aa72e..b3870e0c7c8 100644
--- a/lib/api/users.rb
+++ b/lib/api/users.rb
@@ -353,7 +353,7 @@ module API
success Entities::UserFull
end
get do
- present current_user, with: Entities::UserFull
+ present current_user, with: Entities::UserFull, sudo_identifier: sudo_identifier
end
desc "Get the currently authenticated user's SSH keys" do