TODO (PR #24810): Replace rbac.ResourceSystem with dedicated boundary_log resource type.
(ctx context.Context, arg database.DeleteOldBoundaryLogsParams)
| 2184 | |
| 2185 | // TODO (PR #24810): Replace rbac.ResourceSystem with dedicated boundary_log resource type. |
| 2186 | func (q *querier) DeleteOldBoundaryLogs(ctx context.Context, arg database.DeleteOldBoundaryLogsParams) (int64, error) { |
| 2187 | if err := q.authorizeContext(ctx, policy.ActionDelete, rbac.ResourceSystem); err != nil { |
| 2188 | return 0, err |
| 2189 | } |
| 2190 | return q.db.DeleteOldBoundaryLogs(ctx, arg) |
| 2191 | } |
| 2192 | |
| 2193 | func (q *querier) DeleteOldChatDebugRuns(ctx context.Context, arg database.DeleteOldChatDebugRunsParams) (int64, error) { |
| 2194 | if err := q.authorizeContext(ctx, policy.ActionDelete, rbac.ResourceSystem); err != nil { |
nothing calls this directly
no test coverage detected