diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-14 14:43:45 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-14 14:43:45 +0200 |
commit | bb6f246790fb3a6b85ab2fd9341566557da64a23 (patch) | |
tree | f215918327d82cc629f8faba6deeebffef92cb3e /app/controllers/projects/environments_controller.rb | |
parent | e129f66d9e597f43f7a85243ddedf3de0fc4946a (diff) | |
download | gitlab-ce-bb6f246790fb3a6b85ab2fd9341566557da64a23.tar.gz |
Authorize environments controller actions
Diffstat (limited to 'app/controllers/projects/environments_controller.rb')
-rw-r--r-- | app/controllers/projects/environments_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/projects/environments_controller.rb b/app/controllers/projects/environments_controller.rb index c6a9a0a403a..4f8dadd6adf 100644 --- a/app/controllers/projects/environments_controller.rb +++ b/app/controllers/projects/environments_controller.rb @@ -1,6 +1,8 @@ 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: [:destroy] before_action :environment, only: [:show, :destroy] def index |