Skip to content
Snippets Groups Projects
Commit 29d9b2ba authored by mechtelm's avatar mechtelm
Browse files

Shorten impressum page

parent a020e910
No related branches found
No related tags found
No related merge requests found
<!-- this component is not sub route of app-root ! -->
<div class="root-body">
<div fxLayout="row" fxLayoutAlign="center start">
<mat-card fxFlex="0 0 500px">
......
import { Component, Inject } from '@angular/core';
import { MainDataService } from '../../maindata.service';
import { AuthAccessKeyType, AuthFlagType } from '../../app.interfaces';
@Component({
templateUrl: './privacy.component.html',
......@@ -9,9 +8,6 @@ import { AuthAccessKeyType, AuthFlagType } from '../../app.interfaces';
]
})
export class PrivacyComponent {
loginName = '';
loginAuthority: string[] = [];
constructor(
@Inject('APP_NAME') public appName: string,
@Inject('APP_PUBLISHER') public appPublisher: string,
......@@ -20,39 +16,4 @@ export class PrivacyComponent {
@Inject('IS_PRODUCTION_MODE') public isProductionMode: boolean,
public mds: MainDataService
) { }
ngOnInit(): void {
setTimeout(() => {
const authData = MainDataService.getAuthData();
if (authData) {
this.loginName = authData.displayName;
if (authData.access[AuthAccessKeyType.WORKSPACE_ADMIN]) {
this.loginAuthority.push('Verwaltung von Testinhalten');
}
if (authData.access[AuthAccessKeyType.SUPER_ADMIN]) {
this.loginAuthority.push('Verwaltung von Nutzerrechten und von grundsätzlichen Systemeinstellungen');
}
if (authData.access[AuthAccessKeyType.TEST]) {
if (authData.access[AuthAccessKeyType.TEST].length > 1) {
this.loginAuthority.push('Ausführung/Ansicht von Befragungen oder Testheften');
} else {
this.loginAuthority.push('Ausführung/Ansicht einer Befragung oder eines Testheftes');
}
}
if (authData.access[AuthAccessKeyType.WORKSPACE_MONITOR]) {
if (authData.access[AuthAccessKeyType.WORKSPACE_MONITOR].length > 1) {
this.loginAuthority.push('Beobachtung/Prüfung der Durchführung von Befragungen oder Kompetenztests');
} else {
this.loginAuthority.push('Beobachtung/Prüfung der Durchführung einer Befragung oder eines Kompetenztests');
}
}
if (authData.access[AuthAccessKeyType.TEST_GROUP_MONITOR]) {
this.loginAuthority.push('Beobachtung/Prüfung einer Testgruppe');
}
if (authData.flags.indexOf(AuthFlagType.CODE_REQUIRED) >= 0) {
this.loginAuthority.push('Code-Eingabe erforderlich');
}
}
});
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment