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/apps/meteor/ee/server/settings/abac.ts

35 lines
903 B

import { settingsRegistry } from '../../../app/settings/server';
export function addSettings(): Promise<void> {
return settingsRegistry.addGroup('General', async function () {
await this.with(
{
enterprise: true,
modules: ['abac'],
},
async function () {
await this.add('ABAC_Enabled', false, {
type: 'boolean',
public: true,
invalidValue: false,
section: 'ABAC',
i18nDescription: 'ABAC_Enabled_Description',
});
await this.add('ABAC_ShowAttributesInRooms', false, {
type: 'boolean',
public: true,
invalidValue: false,
section: 'ABAC',
enableQuery: { _id: 'ABAC_Enabled', value: true },
});
await this.add('Abac_Cache_Decision_Time_Seconds', 300, {
type: 'int',
public: true,
section: 'ABAC',
invalidValue: 0,
enableQuery: { _id: 'ABAC_Enabled', value: true },
});
},
);
});
}