Skip to content
Snippets Groups Projects
Commit fd40d844 authored by Matheus Barbosa Silva's avatar Matheus Barbosa Silva Committed by Guilherme Gazzo
Browse files

fix: Private apps restrictions are not applied on license removal (#33400)

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

* Create changeset
parent 449029c1
No related branches found
No related tags found
No related merge requests found
---
"@rocket.chat/meteor": patch
---
Adds missing readjustment to private apps restrictions on license removal
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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment