summaryrefslogtreecommitdiff
path: root/app/controllers/projects/environments_controller.rb
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-10-17 22:01:56 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2016-10-17 22:01:56 +0200
commit34e19b9b8dccd7cd2e6c2bb408e75c70f3b6f3b9 (patch)
tree035f87e70287d47e10361b2fec44e566d238f7e8 /app/controllers/projects/environments_controller.rb
parente9880722076081df1576a3fb01e2c30feb6208ba (diff)
downloadgitlab-ce-34e19b9b8dccd7cd2e6c2bb408e75c70f3b6f3b9.tar.gz
Fix specs
Diffstat (limited to 'app/controllers/projects/environments_controller.rb')
-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 02a659d3894..e243253c5f1 100644
--- a/app/controllers/projects/environments_controller.rb
+++ b/app/controllers/projects/environments_controller.rb
@@ -1,7 +1,7 @@
class Projects::EnvironmentsController < Projects::ApplicationController
layout 'project'
before_action :authorize_read_environment!
- before_action :authorize_create_environment!, only: [:new, :create, :stop]
+ before_action :authorize_create_environment!, only: [:new, :create]
before_action :authorize_create_deployment!, only: [:stop]
before_action :authorize_update_environment!, only: [:edit, :update]
before_action :environment, only: [:show, :edit, :update, :stop]