(ctx context.Context, arg database.AutoArchiveInactiveChatsParams)
| 1653 | } |
| 1654 | |
| 1655 | func (q *querier) AutoArchiveInactiveChats(ctx context.Context, arg database.AutoArchiveInactiveChatsParams) ([]database.AutoArchiveInactiveChatsRow, error) { |
| 1656 | // Background write by dbpurge. The LATERAL read of chat_messages rows |
| 1657 | // happens below the RBAC boundary; only the chat row itself requires |
| 1658 | // authorization. |
| 1659 | if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceChat); err != nil { |
| 1660 | return nil, err |
| 1661 | } |
| 1662 | return q.db.AutoArchiveInactiveChats(ctx, arg) |
| 1663 | } |
| 1664 | |
| 1665 | func (q *querier) BackfillChatModelConfigProvider(ctx context.Context, arg database.BackfillChatModelConfigProviderParams) (sql.Result, error) { |
| 1666 | if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil { |
nothing calls this directly
no test coverage detected