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

14 lines
369 B

import { Migrations } from '../../../app/migrations';
import { Permissions, Roles } from '../../../app/models';
Migrations.add({
version: 108,
up() {
const roles = Roles.find({
_id: { $ne: 'guest' },
scope: 'Users',
}).fetch().map((role) => role._id);
Permissions.createOrUpdate('leave-c', roles);
Permissions.createOrUpdate('leave-d', roles);
},
});