parent
d82a7362c7
commit
adb6c32621
@ -0,0 +1,10 @@ |
||||
RocketChat.Migrations.add({ |
||||
version: 107, |
||||
up() { |
||||
const roles = RocketChat.models.Roles.find({ |
||||
_id: { $ne: 'guest' }, |
||||
scope: 'Users' |
||||
}).fetch().map((role)=>{ return role._id; }); |
||||
RocketChat.models.Permissions.createOrUpdate('leave-c', roles); |
||||
} |
||||
}); |
||||
Loading…
Reference in new issue