From 083fc49cf718e460dd6e8fcd72b98b42aeb6fc86 Mon Sep 17 00:00:00 2001 From: Douglas Gubert <douglas.gubert@gmail.com> Date: Thu, 13 Feb 2025 21:31:10 -0300 Subject: [PATCH] fix: updating some apps via Marketplace ignores permissions (#35170) --- .changeset/mean-elephants-boil.md | 6 ++++++ apps/meteor/ee/server/apps/communication/rest.ts | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 .changeset/mean-elephants-boil.md diff --git a/.changeset/mean-elephants-boil.md b/.changeset/mean-elephants-boil.md new file mode 100644 index 00000000000..fa091f08a8d --- /dev/null +++ b/.changeset/mean-elephants-boil.md @@ -0,0 +1,6 @@ +--- +'@rocket.chat/apps-engine': patch +'@rocket.chat/meteor': patch +--- + +Fixes an issue that would cause marketplace apps to become invalid installations after an update diff --git a/apps/meteor/ee/server/apps/communication/rest.ts b/apps/meteor/ee/server/apps/communication/rest.ts index 28f404fe5cc..938dae6e7c0 100644 --- a/apps/meteor/ee/server/apps/communication/rest.ts +++ b/apps/meteor/ee/server/apps/communication/rest.ts @@ -854,6 +854,8 @@ export class AppsRestApi { orchestrator.getRocketChatLogger().error('Error getting the App from the Marketplace:', e.response.data); return API.v1.internalError(); } + + permissionsGranted = this.bodyParams.permissionsGranted; } else { isPrivateAppUpload = true; -- GitLab