feat(estimate): scope estimate search to controller audience

This commit is contained in:
2026-03-30 09:44:50 +02:00
parent 806c028974
commit 98502e6cf8
4 changed files with 65 additions and 5 deletions
+1
View File
@@ -239,6 +239,7 @@ const PLANNING_READ_TOOLS = new Set([
const CONTROLLER_ONLY_TOOLS = new Set([
"search_projects",
"get_project",
"search_estimates",
"get_timeline_entries_view",
"get_timeline_holiday_overlays",
"get_project_timeline_context",
+1 -1
View File
@@ -245,7 +245,7 @@ async function autoFillDemandLineRates(
}
export const estimateRouter = createTRPCRouter({
list: protectedProcedure
list: controllerProcedure
.input(EstimateListFiltersSchema.default({}))
.query(async ({ ctx, input }) =>
listEstimates(