Commit dffa6549 authored by Alishan Ladhani's avatar Alishan Ladhani

Check correct permissions before showing Release Evidence link

Changelog: fixed
parent f7aae684
......@@ -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