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/ee/app/auditing/client/index.js

28 lines
716 B

import { hasLicense } from '../../license/client';
import { AccountBox } from '../../../../app/ui-utils/client';
import { hasAllPermission } from '../../../../app/authorization/client';
import './routes';
hasLicense('auditing').then((enabled) => {
if (!enabled) {
return;
}
require('./templates');
require('./index.css');
AccountBox.addItem({
href: 'audit-home',
name: 'Message_auditing',
icon: 'document-eye',
condition: () => hasAllPermission('can-audit'),
});
AccountBox.addItem({
href: 'audit-log',
name: 'Message_auditing_log',
icon: 'document-eye',
condition: () => hasAllPermission('can-audit-log'),
});
}).catch((error) => {
console.error('Error checking license.', error);
});