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

26 lines
540 B

import { Migrations } from '../../../app/migrations/server';
import { Settings } from '../../../app/models/server';
import { settings } from '../../../app/settings/server';
Migrations.add({
version: 158,
up() {
if (!settings.get('CAS_enabled')) {
return;
}
Settings.upsert({
_id: 'CAS_trust_username',
},
{
_id: 'CAS_trust_username',
value: true,
type: 'boolean',
group: 'CAS',
i18nDescription: 'CAS_trust_username_description',
});
},
down() {
// Down migration does not apply in this case
},
});