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/v162.js

16 lines
411 B

import { Migrations } from '../../../app/migrations/server';
import { Permissions } from '../../../app/models/server';
Migrations.add({
version: 162,
up() {
const bulkCreateC = Permissions.findOne({ _id: 'bulk-create-c' });
if (bulkCreateC) {
Permissions.remove({ _id: 'bulk-create-c' });
}
},
down() {
Permissions.upsert({ _id: 'bulk-create-c' }, { _id: 'bulk-create-c', roles: [] });
},
});