summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorZ.J. van de Weg <zegerjan@gitlab.com>2016-08-01 08:42:09 +0200
committerZ.J. van de Weg <zegerjan@gitlab.com>2016-08-01 08:42:09 +0200
commit34c1c8a3b14ab3b29fbde97532c89404d9573a1d (patch)
treefa5daadff4327fe4cc534fa43d4f91bc59b2367a /app
parent1b72256fa14e65256d78347f81b289d43c44e991 (diff)
downloadgitlab-ce-34c1c8a3b14ab3b29fbde97532c89404d9573a1d.tar.gz
Minor fixes in the Env API endpointszj-env-external-url
Diffstat (limited to 'app')
-rw-r--r--app/controllers/projects/environments_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/environments_controller.rb b/app/controllers/projects/environments_controller.rb
index 1f5c7506212..58678f96879 100644
--- a/app/controllers/projects/environments_controller.rb
+++ b/app/controllers/projects/environments_controller.rb
@@ -2,7 +2,7 @@ class Projects::EnvironmentsController < Projects::ApplicationController
layout 'project'
before_action :authorize_read_environment!
before_action :authorize_create_environment!, only: [:new, :create]
- before_action :authorize_update_environment!, only: [:edit, :destroy]
+ before_action :authorize_update_environment!, only: [:edit, :update, :destroy]
before_action :environment, only: [:show, :edit, :update, :destroy]
def index