diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/environments.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/api/environments.rb b/lib/api/environments.rb index 5ec0e225c35..6cd43923559 100644 --- a/lib/api/environments.rb +++ b/lib/api/environments.rb @@ -112,7 +112,9 @@ module API authorize! :read_environment, user_project environment = user_project.environments.find(params[:environment_id]) - present environment, with: Entities::Environment, current_user: current_user, except: [:project], last_deployment: true + present environment, with: Entities::Environment, current_user: current_user, + except: [:project, { last_deployment: [:environment] }], + last_deployment: true end end end |