]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+admin/admin.component.ts
Merge branch 'master' into develop
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / admin.component.ts
index 1a4dd67862d96460b57f1b24db192f9420171bfe..408de4837bcd21a8ebf1a1324b555f8efe37a0e7 100644 (file)
@@ -3,8 +3,7 @@ import { UserRight } from '../../../../shared'
 import { AuthService } from '../core/auth/auth.service'
 
 @Component({
-  templateUrl: './admin.component.html',
-  styleUrls: [ './admin.component.scss' ]
+  templateUrl: './admin.component.html'
 })
 export class AdminComponent {
   constructor (private auth: AuthService) {}
@@ -25,11 +24,19 @@ export class AdminComponent {
     return this.auth.getUser().hasRight(UserRight.MANAGE_VIDEO_BLACKLIST)
   }
 
+  hasConfigRight () {
+    return this.auth.getUser().hasRight(UserRight.MANAGE_CONFIGURATION)
+  }
+
+  hasLogsRight () {
+    return this.auth.getUser().hasRight(UserRight.MANAGE_LOGS)
+  }
+
   hasJobsRight () {
     return this.auth.getUser().hasRight(UserRight.MANAGE_JOBS)
   }
 
-  hasConfigRight () {
-    return this.auth.getUser().hasRight(UserRight.MANAGE_CONFIGURATION)
+  hasDebugRight () {
+    return this.auth.getUser().hasRight(UserRight.MANAGE_DEBUG)
   }
 }