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

Method GetFileTemplates

coderd/database/dbauthz/dbauthz.go:3466–3471  ·  view source on GitHub ↗
(ctx context.Context, fileID uuid.UUID)

Source from the content-addressed store, hash-verified

3464}
3465
3466func (q *querier) GetFileTemplates(ctx context.Context, fileID uuid.UUID) ([]database.GetFileTemplatesRow, error) {
3467 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceSystem); err != nil {
3468 return nil, err
3469 }
3470 return q.db.GetFileTemplates(ctx, fileID)
3471}
3472
3473func (q *querier) GetFilteredInboxNotificationsByUserID(ctx context.Context, arg database.GetFilteredInboxNotificationsByUserIDParams) ([]database.InboxNotification, error) {
3474 return fetchWithPostFilter(q.auth, policy.ActionRead, q.db.GetFilteredInboxNotificationsByUserID)(ctx, arg)

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95
GetFileTemplatesMethod · 0.65

Tested by

no test coverage detected