(ctx context.Context, arg database.GetTemplatesWithFilterParams, _ rbac.PreparedAuthorized)
| 8439 | } |
| 8440 | |
| 8441 | func (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 | |
| 8446 | func (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. |
nothing calls this directly
no test coverage detected