diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-10-17 22:01:56 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-10-17 22:01:56 +0200 |
commit | 34e19b9b8dccd7cd2e6c2bb408e75c70f3b6f3b9 (patch) | |
tree | 035f87e70287d47e10361b2fec44e566d238f7e8 /app/controllers/projects/environments_controller.rb | |
parent | e9880722076081df1576a3fb01e2c30feb6208ba (diff) | |
download | gitlab-ce-34e19b9b8dccd7cd2e6c2bb408e75c70f3b6f3b9.tar.gz |
Fix specs
Diffstat (limited to 'app/controllers/projects/environments_controller.rb')
-rw-r--r-- | app/controllers/projects/environments_controller.rb | 2 |
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] |