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

Method GetLicenses

coderd/database/dbauthz/dbauthz.go:3641–3646  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

3639}
3640
3641func (q *querier) GetLicenses(ctx context.Context) ([]database.License, error) {
3642 fetch := func(ctx context.Context, _ interface{}) ([]database.License, error) {
3643 return q.db.GetLicenses(ctx)
3644 }
3645 return fetchWithPostFilter(q.auth, policy.ActionRead, fetch)(ctx, nil)
3646}
3647
3648func (q *querier) GetLogoURL(ctx context.Context) (string, error) {
3649 // No authz checks

Callers

nothing calls this directly

Calls 2

fetchWithPostFilterFunction · 0.85
GetLicensesMethod · 0.65

Tested by

no test coverage detected