-
Notifications
You must be signed in to change notification settings - Fork 1
/
acl.ts
39 lines (27 loc) · 1.1 KB
/
acl.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import { AllRoles } from "./models/User";
export abstract class Acl {
static readonly geraetEinrichten: AllRoles[] = ["ROLE_GROUPLEADER"];
static readonly mannschaftsbuch: AllRoles[] = [
"ROLE_GROUPLEADER",
"ROLE_VEHICLE",
];
static readonly bereitschaftsliste: AllRoles[] = [
"ROLE_GROUPLEADER",
"ROLE_ALARM_PC",
"ROLE_VEHICLE",
];
static readonly alarmPc: AllRoles[] = ["ROLE_ALARM_PC"];
static readonly alleEinsaetzeAnzeigen: AllRoles[] = ["ROLE_GROUPLEADER"];
static readonly alleEinsaetzeBearbeiten: AllRoles[] =
Acl.alleEinsaetzeAnzeigen;
static readonly einsatzLoeschen: AllRoles[] = ["ROLE_GROUPLEADER"];
static readonly uebungenAnzeigen: AllRoles[] = ["ROLE_GROUPLEADER"];
static readonly feuerwehrGeraete: AllRoles[] = [
"ROLE_GROUPLEADER",
"ROLE_VEHICLE",
];
static readonly kleiderverwaltung: AllRoles[] = ["ROLE_MAINTAINER_CLOTHES"];
static readonly personenBearbeiten: AllRoles[] = ["ROLE_GROUPLEADER"];
static readonly datenexport: AllRoles[] = ["ROLE_GROUPLEADER"];
static readonly benutzerVerwalten: AllRoles[] = ["ROLE_ADMIN"];
}