summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-10-17 21:06:10 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2016-10-17 21:06:10 +0200
commite9880722076081df1576a3fb01e2c30feb6208ba (patch)
tree790238d3777285a5f42947b42f906cdaee7e8c94 /app/controllers
parent4a369185d77013b2138f2daf6d85b1358425e75c (diff)
downloadgitlab-ce-e9880722076081df1576a3fb01e2c30feb6208ba.tar.gz
Fix environments specs
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/projects/environments_controller.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/controllers/projects/environments_controller.rb b/app/controllers/projects/environments_controller.rb
index 86bc17a720a..02a659d3894 100644
--- a/app/controllers/projects/environments_controller.rb
+++ b/app/controllers/projects/environments_controller.rb
@@ -1,8 +1,9 @@
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, :update, :stop]
+ before_action :authorize_create_environment!, only: [:new, :create, :stop]
+ before_action :authorize_create_deployment!, only: [:stop]
+ before_action :authorize_update_environment!, only: [:edit, :update]
before_action :environment, only: [:show, :edit, :update, :stop]
def index