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

Method GetAuthorizedTemplates

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

Source from the content-addressed store, hash-verified

8439}
8440
8441func (q *querier) GetAuthorizedTemplates(ctx context.Context, arg database.GetTemplatesWithFilterParams, _ rbac.PreparedAuthorized) ([]database.Template, error) {
8442 // TODO Delete this function, all GetTemplates should be authorized. For now just call getTemplates on the authz querier.
8443 return q.GetTemplatesWithFilter(ctx, arg)
8444}
8445
8446func (q *querier) GetTemplateGroupRoles(ctx context.Context, id uuid.UUID) ([]database.TemplateGroup, error) {
8447 // An actor is authorized to read template group roles if they are authorized to update the template.

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected