diff options
author | Alex Lossent <alexandre.lossent@cern.ch> | 2015-10-12 15:24:00 +0200 |
---|---|---|
committer | Alex Lossent <alexandre.lossent@cern.ch> | 2015-10-12 15:24:00 +0200 |
commit | 024e34e94d973842cf02d9177e9ec52bd587ceee (patch) | |
tree | 228f5ce6d191f6771fd64aae1b2a85c795b71b79 /lib/api/services.rb | |
parent | 5ffbf5feb7577ec3affc32992c79cddca3036c4d (diff) | |
download | gitlab-ce-024e34e94d973842cf02d9177e9ec52bd587ceee.tar.gz |
Hide passwords to non-admin users in the services API
In order to be consistent with !1490 doing it for the web interface
Diffstat (limited to 'lib/api/services.rb')
-rw-r--r-- | lib/api/services.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/services.rb b/lib/api/services.rb index 6727e80ac1e..203f04a6259 100644 --- a/lib/api/services.rb +++ b/lib/api/services.rb @@ -57,7 +57,7 @@ module API # GET /project/:id/services/gitlab-ci # get ':id/services/:service_slug' do - present project_service + present project_service, with: Entities::ProjectService, include_passwords: current_user.is_admin? end end end |