diff options
author | Manoj MJ <mmj@gitlab.com> | 2019-06-19 10:08:56 +0300 |
---|---|---|
committer | James Lopez <james@gitlab.com> | 2019-06-19 10:08:56 +0300 |
commit | 53b17f030161ba2afade8fe3d41b849a7fa41a89 (patch) | |
tree | 9f911580f4bc5d78cb66ffe7e16d1f77f7d23f64 /app/controllers/projects/tags_controller.rb | |
parent | 69e1bd389f3cb04d451900f981be646462ffd039 (diff) |
Add documentation and tests
This commit adds
- feature specs
- to test the ability of a user with "developer" permission
to delete tags in repositories.
- documentation
Diffstat (limited to 'app/controllers/projects/tags_controller.rb')
-rw-r--r-- | app/controllers/projects/tags_controller.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/projects/tags_controller.rb b/app/controllers/projects/tags_controller.rb index a17c050b696..7d9387b1d94 100644 --- a/app/controllers/projects/tags_controller.rb +++ b/app/controllers/projects/tags_controller.rb @@ -8,8 +8,7 @@ class Projects::TagsController < Projects::ApplicationController # Authorize before_action :require_non_empty_project before_action :authorize_download_code! - before_action :authorize_push_code!, only: [:new, :create] - before_action :authorize_admin_project!, only: [:destroy] + before_action :authorize_admin_tag!, only: [:new, :create, :destroy] # rubocop: disable CodeReuse/ActiveRecord def index |