aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin/system/system.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+admin/system/system.component.ts')
-rw-r--r--client/src/app/+admin/system/system.component.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/client/src/app/+admin/system/system.component.ts b/client/src/app/+admin/system/system.component.ts
index 992d9c8af..b544c2a97 100644
--- a/client/src/app/+admin/system/system.component.ts
+++ b/client/src/app/+admin/system/system.component.ts
@@ -1,8 +1,24 @@
1import { Component } from '@angular/core' 1import { Component } from '@angular/core'
2import { UserRight } from '@shared/models'
3import { AuthService } from '@app/core'
2 4
3@Component({ 5@Component({
4 templateUrl: './system.component.html', 6 templateUrl: './system.component.html',
5 styleUrls: [ './system.component.scss' ] 7 styleUrls: [ './system.component.scss' ]
6}) 8})
7export class SystemComponent { 9export class SystemComponent {
10
11 constructor (private auth: AuthService) {}
12
13 hasLogsRight () {
14 return this.auth.getUser().hasRight(UserRight.MANAGE_LOGS)
15 }
16
17 hasJobsRight () {
18 return this.auth.getUser().hasRight(UserRight.MANAGE_JOBS)
19 }
20
21 hasDebugRight () {
22 return this.auth.getUser().hasRight(UserRight.MANAGE_DEBUG)
23 }
8} 24}