Skip to content

Commit

Permalink
fix: Private apps restrictions are not applied on license removal (#3…
Browse files Browse the repository at this point in the history
…3400)

* feat: Apply CE restrictions related to private apps on license removal

* Create changeset
  • Loading branch information
matheusbsilva137 authored Oct 1, 2024
1 parent c9a263c commit 6c43d22
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/eighty-items-behave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/meteor": patch
---

Adds missing readjustment to private apps restrictions on license removal
9 changes: 6 additions & 3 deletions apps/meteor/ee/server/startup/apps/trialExpiration.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import { License } from '@rocket.chat/license';
import { Meteor } from 'meteor/meteor';

Meteor.startup(() => {
License.onInvalidateLicense(async () => {
const { Apps } = await import('../../apps');
Meteor.startup(async () => {
const { Apps } = await import('../../apps');
License.onInvalidateLicense(() => {
void Apps.disableApps();
});
License.onRemoveLicense(() => {
void Apps.disableApps();
});
});

0 comments on commit 6c43d22

Please sign in to comment.