Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
dffa6549
Commit
dffa6549
authored
Nov 02, 2021
by
Alishan Ladhani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check correct permissions before showing Release Evidence link
Changelog: fixed
parent
f7aae684
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/graphql/types/evidence_type.rb
app/graphql/types/evidence_type.rb
+1
-1
spec/graphql/types/evidence_type_spec.rb
spec/graphql/types/evidence_type_spec.rb
+1
-1
No files found.
app/graphql/types/evidence_type.rb
View file @
dffa6549
...
...
@@ -5,7 +5,7 @@ module Types
graphql_name
'ReleaseEvidence'
description
'Evidence for a release'
authorize
:
download_cod
e
authorize
:
read_release_evidenc
e
present_using
Releases
::
EvidencePresenter
...
...
spec/graphql/types/evidence_type_spec.rb
View file @
dffa6549
...
...
@@ -3,7 +3,7 @@
require
'spec_helper'
RSpec
.
describe
GitlabSchema
.
types
[
'ReleaseEvidence'
]
do
it
{
expect
(
described_class
).
to
require_graphql_authorizations
(
:download_cod
e
)
}
specify
{
expect
(
described_class
).
to
require_graphql_authorizations
(
:read_release_evidenc
e
)
}
it
'has the expected fields'
do
expected_fields
=
%w[
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment