summaryrefslogtreecommitdiff
path: root/lib/api/entities.rb
diff options
context:
space:
mode:
authorZ.J. van de Weg <zegerjan@gitlab.com>2016-08-18 21:10:20 +0200
committerZ.J. van de Weg <zegerjan@gitlab.com>2016-08-18 21:10:53 +0200
commit2038e035c73f80292fa1bf9757803d8ab5e6ecab (patch)
tree4c3fc4248499383297336f2135b73f1c65cc50ac /lib/api/entities.rb
parentba01e519e24bf716c138a0b46e371c60de4aa935 (diff)
downloadgitlab-ce-2038e035c73f80292fa1bf9757803d8ab5e6ecab.tar.gz
Do not expose projects on deployments
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r--lib/api/entities.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index a10951b9ea0..67420772335 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -521,10 +521,9 @@ module API
class Deployment < Grape::Entity
expose :id, :iid, :ref, :sha, :created_at
- expose :project, using: Entities::Project
- expose :user, using: Entities::UserBasic
- expose :environment, using: Entities::EnvironmentBasic
- expose :deployable, using: Entities::Build
+ expose :user, using: Entities::UserBasic
+ expose :environment, using: Entities::EnvironmentBasic
+ expose :deployable, using: Entities::Build
end
class RepoLicense < Grape::Entity