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

16 lines
448 B

import { Migrations } from '../../../app/migrations/server';
import { Permissions } from '../../../app/models/server';
Migrations.add({
version: 168,
up() {
const perm = Permissions.findOne({ _id: 'reset-other-user-e2e-key' });
if (perm) {
Permissions.remove({ _id: 'reset-other-user-e2e-key' });
}
},
down() {
Permissions.upsert({ _id: 'reset-other-user-e2e-key' }, { _id: 'reset-other-user-e2e-key', roles: ['admin'] });
},
});