From c2929a04424d9cb46df7f8ae8ac84beac457d7c1 Mon Sep 17 00:00:00 2001 From: Charles Pizzato <311327716+modernitconsultants@users.noreply.github.com> Date: Sat, 15 Aug 2026 19:21:15 +1000 Subject: [PATCH] feat(ical): allow revenue_manager to read a feed's imported blocks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #318 relaxed listing, reading and syncing feeds to revenue_manager, but GET /ical/feeds/:id/blocks was missed, so an integration can list the feeds and sync them while being unable to see what they imported. Reading the blocks is no more privileged than reading the feed beside it — they are the busy dates a sync just fetched, not credentials. Without it any consumer that reconciles imported availability against its own calendar has to hold admin purely to read. Co-Authored-By: Claude Fable 5 --- apps/api/src/modules/ical/ical.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/modules/ical/ical.controller.ts b/apps/api/src/modules/ical/ical.controller.ts index ee5657c..daabe4e 100644 --- a/apps/api/src/modules/ical/ical.controller.ts +++ b/apps/api/src/modules/ical/ical.controller.ts @@ -116,7 +116,7 @@ export class IcalController { } @Get('feeds/:id/blocks') - @Roles('admin') + @Roles('admin', 'revenue_manager') @ApiOperation({ summary: 'List imported busy blocks for a feed' }) @ApiQuery({ name: 'propertyId', required: true }) listBlocks(