fix(blueprint): require planning access for global field defs
This commit is contained in:
@@ -247,7 +247,7 @@ export const blueprintRouter = createTRPCRouter({
|
||||
return { count: updated.length };
|
||||
}),
|
||||
|
||||
getGlobalFieldDefs: protectedProcedure
|
||||
getGlobalFieldDefs: planningReadProcedure
|
||||
.input(z.object({ target: z.nativeEnum(BlueprintTarget) }))
|
||||
.query(async ({ ctx, input }) => {
|
||||
const blueprints = await ctx.db.blueprint.findMany({
|
||||
|
||||
Reference in New Issue
Block a user