Commit c513f4fd authored by Terri Chu's avatar Terri Chu

Merge branch 'ali/fix-release-evidence-permission' into 'master'

Check correct permissions before showing Release Evidence link

See merge request gitlab-org/gitlab!73574
parents 0ba90249 dffa6549
......@@ -5,7 +5,7 @@ module Types
graphql_name 'ReleaseEvidence'
description 'Evidence for a release'
authorize :download_code
authorize :read_release_evidence
present_using Releases::EvidencePresenter
......
......@@ -3,7 +3,7 @@
require 'spec_helper'
RSpec.describe GitlabSchema.types['ReleaseEvidence'] do
it { expect(described_class).to require_graphql_authorizations(:download_code) }
specify { expect(described_class).to require_graphql_authorizations(:read_release_evidence) }
it 'has the expected fields' do
expected_fields = %w[
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment