X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Badmin%2Fadmin.component.ts;h=408de4837bcd21a8ebf1a1324b555f8efe37a0e7;hb=5d79474cc66383ecbfcef6366f63a34c3af21cbf;hp=fc775a5a45c32c6ab1740a2909dfe34cc07b7c6a;hpb=2b3f1919fda81c2781ceeb9071d426c184e1b21c;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+admin/admin.component.ts b/client/src/app/+admin/admin.component.ts index fc775a5a4..408de4837 100644 --- a/client/src/app/+admin/admin.component.ts +++ b/client/src/app/+admin/admin.component.ts @@ -24,15 +24,19 @@ export class AdminComponent { return this.auth.getUser().hasRight(UserRight.MANAGE_VIDEO_BLACKLIST) } - hasJobsRight () { - return this.auth.getUser().hasRight(UserRight.MANAGE_JOBS) + hasConfigRight () { + return this.auth.getUser().hasRight(UserRight.MANAGE_CONFIGURATION) } hasLogsRight () { return this.auth.getUser().hasRight(UserRight.MANAGE_LOGS) } - hasConfigRight () { - return this.auth.getUser().hasRight(UserRight.MANAGE_CONFIGURATION) + hasJobsRight () { + return this.auth.getUser().hasRight(UserRight.MANAGE_JOBS) + } + + hasDebugRight () { + return this.auth.getUser().hasRight(UserRight.MANAGE_DEBUG) } }