OpenSlides/client/src/app/site/history/history.config.ts
Sean fca4154bb5 Add permission as lookup object
Adds a lookup object for a more solid approach to handling permissions.
Permissions are now an actual type rather than just a string.
2020-05-14 10:12:22 +02:00

20 lines
495 B
TypeScript

import { AppConfig } from '../../core/definitions/app-config';
import { Permission } from 'app/core/core-services/operator.service';
/**
* Config object for history.
* Hooks into the navigation.
*/
export const HistoryAppConfig: AppConfig = {
name: 'history',
mainMenuEntries: [
{
route: '/history',
displayName: 'History',
icon: 'history',
weight: 1200,
permission: Permission.coreCanSeeHistory
}
]
};