The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Rocket.Chat/server/startup/migrations/v111.js

11 lines
388 B

// Migration to give delete channel, delete group permissions to owner
RocketChat.Migrations.add({
version: 111,
up() {
if (RocketChat.models && RocketChat.models.Permissions) {
RocketChat.models.Permissions.update({ _id: 'delete-c' }, { $addToSet: { roles: 'owner' } });
RocketChat.models.Permissions.update({ _id: 'delete-p' }, { $addToSet: { roles: 'owner' } });
}
},
});