diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-24 12:09:42 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-24 12:09:42 +0000 |
commit | 729e3765d5feb762df1ccfbc228a8dd4662aa3f9 (patch) | |
tree | f326420fc64999c6bcc28816ed54f0972fb46459 /app/controllers/projects/releases_controller.rb | |
parent | 6f7881ee9dcec34141a8f34fc814b56b366d2b48 (diff) | |
download | gitlab-ce-729e3765d5feb762df1ccfbc228a8dd4662aa3f9.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/controllers/projects/releases_controller.rb')
-rw-r--r-- | app/controllers/projects/releases_controller.rb | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/app/controllers/projects/releases_controller.rb b/app/controllers/projects/releases_controller.rb index 7d6b38dd243..fc60f42095c 100644 --- a/app/controllers/projects/releases_controller.rb +++ b/app/controllers/projects/releases_controller.rb @@ -11,7 +11,6 @@ class Projects::ReleasesController < Projects::ApplicationController push_frontend_feature_flag(:release_show_page, project, default_enabled: true) end before_action :authorize_update_release!, only: %i[edit update] - before_action :authorize_read_release_evidence!, only: [:evidence] def index respond_to do |format| @@ -22,14 +21,6 @@ class Projects::ReleasesController < Projects::ApplicationController end end - def evidence - respond_to do |format| - format.json do - render json: release.evidence_summary - end - end - end - def show return render_404 unless Feature.enabled?(:release_show_page, project, default_enabled: true) @@ -64,11 +55,6 @@ class Projects::ReleasesController < Projects::ApplicationController access_denied! unless can?(current_user, :update_release, release) end - def authorize_read_release_evidence! - access_denied! unless Feature.enabled?(:release_evidence, project, default_enabled: true) - access_denied! unless can?(current_user, :read_release_evidence, release) - end - def release @release ||= project.releases.find_by_tag!(sanitized_tag_name) end |