mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -05:00
PUT /api/boards/:boardId/integrations/:intId answered 200 with the requested id when no integration matched that id and board (PR #6871). The two activities routes (POST and DELETE .../activities) had the same fault: they updated nothing and answered 200 with `data: null`. All three now look the integration up on that board after board-admin authorization and answer the JSON 404 the GET route already uses (#6862), before validating or writing anything. tests/restIntegrationUpdate.test.cjs and the Playwright spec are the PR's. tests/restIntegrationWriteRoutes404.test.cjs adds the activities routes and pins, for the whole file, that every handler that updates an integration looks it up first and only after authorization. Thanks to AhmedLukman and xet7 !