Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix: hide shared feedback access misses

Richie McIlroy7f702f172156
diff --git a/apps/web/app/api/mobile/[...route]/route.ts b/apps/web/app/api/mobile/[...route]/route.ts
index 039543cf9..feb2b0f9d 100644
--- a/apps/web/app/api/mobile/[...route]/route.ts
+++ b/apps/web/app/api/mobile/[...route]/route.ts
@@ -873,7 +873,9 @@ const assertCanCreateFeedback = Effect.fn("Mobile.assertCanCreateFeedback")(
if (!row) return yield* Effect.fail(new HttpApiError.NotFound());
if (row.ownerId === user.id) return;
if (row.sharedOrganizationId) {
- yield* assertOrganizationAccess(row.sharedOrganizationId);
+ yield* assertOrganizationAccess(row.sharedOrganizationId).pipe(
+ Effect.catchAll(() => Effect.fail(new HttpApiError.NotFound())),
+ );
return;
}