Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6d5c2f commit 672b2e0Copy full SHA for 672b2e0
coderd/authzquery/workspace.go
@@ -44,7 +44,8 @@ func (q *AuthzQuerier) GetLatestWorkspaceBuildsByWorkspaceIDs(ctx context.Contex
44
// This should probably be handled differently? Maybe join workspace builds with workspace
45
// ownership properties and filter on that.
46
for _, id := range ids {
47
- if err := q.authorizeContext(ctx, rbac.ActionRead, rbac.ResourceWorkspace.WithID(id)); err != nil {
+ _, err := q.GetWorkspaceByID(ctx, id)
48
+ if err != nil {
49
return nil, err
50
}
51
0 commit comments