GetChatTemplateAllowlist requires deployment-config read permission, unlike the peer getters (GetChatDesktopEnabled, etc.) which only check actor presence. The allowlist is admin-configuration that should not be readable by non-admin users via the HTTP API.
(ctx context.Context)
| 3215 | // check actor presence. The allowlist is admin-configuration that |
| 3216 | // should not be readable by non-admin users via the HTTP API. |
| 3217 | func (q *querier) GetChatTemplateAllowlist(ctx context.Context) (string, error) { |
| 3218 | if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceDeploymentConfig); err != nil { |
| 3219 | return "", err |
| 3220 | } |
| 3221 | return q.db.GetChatTemplateAllowlist(ctx) |
| 3222 | } |
| 3223 | |
| 3224 | func (q *querier) GetChatTitleGenerationModelOverride(ctx context.Context) (string, error) { |
| 3225 | if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceDeploymentConfig); err != nil { |
nothing calls this directly
no test coverage detected