]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+admin/system/system.component.ts
Refactor log level choice
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / system / system.component.ts
index b544c2a97905ab4b76daecc7fdc34c66ef96dbe3..b63160b861ba61f5a62f88cb033d65ac3635db7d 100644 (file)
@@ -1,24 +1,8 @@
 import { Component } from '@angular/core'
-import { UserRight } from '@shared/models'
-import { AuthService } from '@app/core'
 
 @Component({
   templateUrl: './system.component.html',
-  styleUrls: [ './system.component.scss' ]
+  styleUrls: []
 })
 export class SystemComponent {
-
-  constructor (private auth: AuthService) {}
-
-  hasLogsRight () {
-    return this.auth.getUser().hasRight(UserRight.MANAGE_LOGS)
-  }
-
-  hasJobsRight () {
-    return this.auth.getUser().hasRight(UserRight.MANAGE_JOBS)
-  }
-
-  hasDebugRight () {
-    return this.auth.getUser().hasRight(UserRight.MANAGE_DEBUG)
-  }
 }