feat(estimate): scope estimate search to controller audience
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -245,7 +245,7 @@ async function autoFillDemandLineRates(
|
||||
}
|
||||
|
||||
export const estimateRouter = createTRPCRouter({
|
||||
list: protectedProcedure
|
||||
list: controllerProcedure
|
||||
.input(EstimateListFiltersSchema.default({}))
|
||||
.query(async ({ ctx, input }) =>
|
||||
listEstimates(
|
||||
|
||||
Reference in New Issue
Block a user