Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoj MJ <mmj@gitlab.com>2019-06-19 10:08:56 +0300
committerJames Lopez <james@gitlab.com>2019-06-19 10:08:56 +0300
commit53b17f030161ba2afade8fe3d41b849a7fa41a89 (patch)
tree9f911580f4bc5d78cb66ffe7e16d1f77f7d23f64 /app/controllers/projects/tags_controller.rb
parent69e1bd389f3cb04d451900f981be646462ffd039 (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.rb3
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