X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Badmin%2Fadmin.component.ts;h=b23999d404654c8306f34c8e44f47b342c21eb64;hb=f77eb73b5e02bed9e223dafc1c203ceb7c05b6e5;hp=fc775a5a45c32c6ab1740a2909dfe34cc07b7c6a;hpb=2c22613c2fe6f7f9c8c7de66e42be54b27cc7edd;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..b23999d40 100644 --- a/client/src/app/+admin/admin.component.ts +++ b/client/src/app/+admin/admin.component.ts @@ -24,15 +24,23 @@ 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) + } + + hasPluginsRight () { + return this.auth.getUser().hasRight(UserRight.MANAGE_PLUGINS) } 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) } }