The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Remove owner-workspace restriction on unlisted tarball app installs (#25270)
martmullad30dbcc2953
diff --git a/packages/twenty-server/src/engine/core-modules/application/application-install/application-install.service.ts b/packages/twenty-server/src/engine/core-modules/application/application-install/application-install.service.tsindex dff5aa5237d..45800a740cd 100644--- a/packages/twenty-server/src/engine/core-modules/application/application-install/application-install.service.ts+++ b/packages/twenty-server/src/engine/core-modules/application/application-install/application-install.service.ts@@ -128,8 +128,8 @@ export class ApplicationInstallService {skipWorkspaceCompatibilityCheck?: boolean;},): Promise<boolean> {- // Re-read inside the lock so the authorization below cannot act on stale- // listing or ownership state.+ // Re-read inside the lock so a concurrent tarball upload cannot make us+ // resolve a stale package.const appRegistration = await this.appRegistrationRepository.findOne({where: { id: preLockAppRegistration.id },});@@ -141,21 +141,6 @@ export class ApplicationInstallService {);}- // Tarball registrations that are neither listed nor pre-installed are- // only installable by their owner workspace.- if (- appRegistration.sourceType ===- ApplicationRegistrationSourceType.TARBALL &&- !appRegistration.isListed &&- !appRegistration.isPreInstalled &&- appRegistration.ownerWorkspaceId !== params.workspaceId- ) {- throw new ApplicationException(- `Application registration ${appRegistration.universalIdentifier} is not available for this workspace`,- ApplicationExceptionCode.FORBIDDEN,- );- }-const resolvedPackage =await this.applicationPackageFetcherService.resolvePackage(appRegistration,