MCPcopy Index your code
hub / github.com/coder/coder / GetAuthorizedWorkspaces

Method GetAuthorizedWorkspaces

coderd/database/dbauthz/dbauthz.go:8470–8473  ·  view source on GitHub ↗
(ctx context.Context, arg database.GetWorkspacesParams, _ rbac.PreparedAuthorized)

Source from the content-addressed store, hash-verified

8468}
8469
8470func (q *querier) GetAuthorizedWorkspaces(ctx context.Context, arg database.GetWorkspacesParams, _ rbac.PreparedAuthorized) ([]database.GetWorkspacesRow, error) {
8471 // TODO Delete this function, all GetWorkspaces should be authorized. For now just call GetWorkspaces on the authz querier.
8472 return q.GetWorkspaces(ctx, arg)
8473}
8474
8475func (q *querier) GetAuthorizedWorkspacesAndAgentsByOwnerID(ctx context.Context, ownerID uuid.UUID, _ rbac.PreparedAuthorized) ([]database.GetWorkspacesAndAgentsByOwnerIDRow, error) {
8476 return q.GetWorkspacesAndAgentsByOwnerID(ctx, ownerID)

Callers

nothing calls this directly

Calls 1

GetWorkspacesMethod · 0.95

Tested by

no test coverage detected