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

13 lines
408 B

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