diff options
author | Cindy Pallares 🦉 <cindy@gitlab.com> | 2018-12-04 17:59:41 +0000 |
---|---|---|
committer | Cindy Pallares 🦉 <cindy@gitlab.com> | 2018-12-04 17:59:41 +0000 |
commit | 254ccd50f8d5ed28a14e5f6076eb4f99bd037641 (patch) | |
tree | 6bd2e4193e6dc31afd17238194d92a8a3cf01d95 /lib/api/users.rb | |
parent | 900cbabc54fced54fdf0415cc64c98dcc082bbac (diff) | |
download | gitlab-ce-revert-3f019419.tar.gz |
Revert "Merge branch '11-5-stable-patch-2' into '11-5-stable'"revert-3f019419
This reverts merge request !23420
Diffstat (limited to 'lib/api/users.rb')
-rw-r--r-- | lib/api/users.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/users.rb b/lib/api/users.rb index b41fce76df0..2a56506f3a5 100644 --- a/lib/api/users.rb +++ b/lib/api/users.rb @@ -531,7 +531,7 @@ module API desc 'Create a impersonation token. Available only for admins.' do detail 'This feature was introduced in GitLab 9.0' - success Entities::ImpersonationTokenWithToken + success Entities::ImpersonationToken end params do requires :name, type: String, desc: 'The name of the impersonation token' @@ -542,7 +542,7 @@ module API impersonation_token = finder.build(declared_params(include_missing: false)) if impersonation_token.save - present impersonation_token, with: Entities::ImpersonationTokenWithToken + present impersonation_token, with: Entities::ImpersonationToken else render_validation_error!(impersonation_token) end |