Skip to content
Snippets Groups Projects
Commit 3feac12b authored by Adam Štěpánek's avatar Adam Štěpánek
Browse files

Fix auth in ArtifactDetailEndpoint

parent 8bc0b85b
No related branches found
No related tags found
1 merge request!56Fix auth in ArtifactDetailEndpoint
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment