]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+admin/system/system.component.ts
Use grid to organise settings in admin, my-account
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / system / system.component.ts
CommitLineData
2c22613c 1import { Component } from '@angular/core'
5d79474c
C
2import { UserRight } from '@shared/models'
3import { AuthService } from '@app/core'
2c22613c
C
4
5@Component({
6 templateUrl: './system.component.html',
7 styleUrls: [ './system.component.scss' ]
8})
9export class SystemComponent {
5d79474c
C
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 }
2c22613c 24}