X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Badmin%2Fadmin.component.ts;h=b23999d404654c8306f34c8e44f47b342c21eb64;hb=f77eb73b5e02bed9e223dafc1c203ceb7c05b6e5;hp=408de4837bcd21a8ebf1a1324b555f8efe37a0e7;hpb=5d79474cc66383ecbfcef6366f63a34c3af21cbf;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+admin/admin.component.ts b/client/src/app/+admin/admin.component.ts index 408de4837..b23999d40 100644 --- a/client/src/app/+admin/admin.component.ts +++ b/client/src/app/+admin/admin.component.ts @@ -28,6 +28,10 @@ export class AdminComponent { 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) }