Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
KAFE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LeGTVaR
KAFE
Commits
3feac12b
There was an error fetching the commit references. Please try again later.
Commit
3feac12b
authored
3 months ago
by
Adam Štěpánek
Browse files
Options
Downloads
Patches
Plain Diff
Fix auth in ArtifactDetailEndpoint
parent
8bc0b85b
No related branches found
No related tags found
1 merge request
!56
Fix auth in ArtifactDetailEndpoint
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Api/Endpoints/Artifact/ArtifactDetailEndpoint.cs
+1
-1
1 addition, 1 deletion
Api/Endpoints/Artifact/ArtifactDetailEndpoint.cs
with
1 addition
and
1 deletion
Api/Endpoints/Artifact/ArtifactDetailEndpoint.cs
+
1
−
1
View file @
3feac12b
...
...
@@ -37,7 +37,7 @@ public class ArtifactDetailEndpoint : EndpointBaseAsync
string
id
,
CancellationToken
cancellationToken
=
default
)
{
var
auth
=
await
authorization
.
AuthorizeAsync
(
User
,
EndpointPolicy
.
Read
);
var
auth
=
await
authorization
.
AuthorizeAsync
(
User
,
id
,
EndpointPolicy
.
Read
);
if
(!
auth
.
Succeeded
)
{
return
Unauthorized
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment