Skip to content

Commit

Permalink
fix(auth): check read access with provided identity
Browse files Browse the repository at this point in the history
  • Loading branch information
amimart committed Sep 19, 2024
1 parent e4e82b8 commit 6342a38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion provider/storage/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (p *Proxy) Read(ctx context.Context, id *auth.Identity, resourceID string)
return nil, err
}

ok, err := p.dvClient.AskGovTellAction(ctx, govAddr, p.key.DID(), readAction)
ok, err := p.dvClient.AskGovTellAction(ctx, govAddr, id.DID, readAction)

Check warning on line 78 in provider/storage/proxy.go

View check run for this annotation

Codecov / codecov/patch

provider/storage/proxy.go#L78

Added line #L78 was not covered by tests
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 6342a38

Please sign in to comment.