Skip to content

Commit

Permalink
Revert "fix: Private apps restrictions are not applied on license rem…
Browse files Browse the repository at this point in the history
…oval (#3…" (#33409)

This reverts commit 6c43d22.
  • Loading branch information
matheusbsilva137 authored and ggazzo committed Oct 17, 2024
1 parent 11edd4c commit 2c0a20b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
5 changes: 0 additions & 5 deletions .changeset/eighty-items-behave.md

This file was deleted.

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

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

0 comments on commit 2c0a20b

Please sign in to comment.