X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Badmin%2Fadmin.component.ts;h=408de4837bcd21a8ebf1a1324b555f8efe37a0e7;hb=1eddc9a74f9a80fa5d0cb25fceb3fc47a1a3c14a;hp=1a4dd67862d96460b57f1b24db192f9420171bfe;hpb=fd206f0b2d7e5c8e00e2817266d90ec54f79e1da;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+admin/admin.component.ts b/client/src/app/+admin/admin.component.ts index 1a4dd6786..408de4837 100644 --- a/client/src/app/+admin/admin.component.ts +++ b/client/src/app/+admin/admin.component.ts @@ -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) } }