Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
testcenter-frontend
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IQB
discontinued
testcenter-frontend
Commits
29d9b2ba
Commit
29d9b2ba
authored
3 years ago
by
mechtelm
Browse files
Options
Downloads
Patches
Plain Diff
Shorten impressum page
parent
a020e910
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/app/app-root/privacy/privacy.component.html
+0
-1
0 additions, 1 deletion
src/app/app-root/privacy/privacy.component.html
src/app/app-root/privacy/privacy.component.ts
+0
-39
0 additions, 39 deletions
src/app/app-root/privacy/privacy.component.ts
with
0 additions
and
40 deletions
src/app/app-root/privacy/privacy.component.html
+
0
−
1
View file @
29d9b2ba
<!-- 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"
>
...
...
This diff is collapsed.
Click to expand it.
src/app/app-root/privacy/privacy.component.ts
+
0
−
39
View file @
29d9b2ba
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
'
);
}
}
});
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment