-
Notifications
You must be signed in to change notification settings - Fork 11k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Private apps restrictions are not applied on license removal (#3…
…3400) * feat: Apply CE restrictions related to private apps on license removal * Create changeset
- Loading branch information
1 parent
dc95006
commit 54a239d
Showing
2 changed files
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
}); | ||
}); |