X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Badmin%2Fadmin.component.ts;h=408de4837bcd21a8ebf1a1324b555f8efe37a0e7;hb=1eddc9a74f9a80fa5d0cb25fceb3fc47a1a3c14a;hp=75cd50cc7543caa7fb61b090a69853ddee939c4a;hpb=04e0fc488826f505a8de3ce99113f3cb2fcec147;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+admin/admin.component.ts b/client/src/app/+admin/admin.component.ts index 75cd50cc7..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,7 +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) } + + hasDebugRight () { + return this.auth.getUser().hasRight(UserRight.MANAGE_DEBUG) + } }