Skip to content

Commit 9e71261

Browse files
committed
add rbac todo
1 parent 563107c commit 9e71261

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

coderd/database/dbauthz/dbauthz.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3399,6 +3399,8 @@ func (q *querier) InsertWorkspaceAgent(ctx context.Context, arg database.InsertW
33993399
}
34003400

34013401
func (q *querier) InsertWorkspaceAgentDevcontainers(ctx context.Context, arg database.InsertWorkspaceAgentDevcontainersParams) ([]database.WorkspaceAgentDevcontainer, error) {
3402+
// TODO: This should probably be a new RBAC resource and not rely on ResourceSystem.
3403+
// See: https://github.com/coder/coder/issues/13315
34023404
if err := q.authorizeContext(ctx, policy.ActionCreate, rbac.ResourceSystem); err != nil {
34033405
return nil, err
34043406
}

0 commit comments

Comments
 (0)