From 75f9348cd1f6144dcab934f61ef58f52aefe04f2 Mon Sep 17 00:00:00 2001 From: t8g Date: Fri, 13 Oct 2017 10:23:22 +0200 Subject: [PATCH] fix (front) remove button for central reader fix #472 --- client/src/app/isari-header/isari-header.component.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client/src/app/isari-header/isari-header.component.ts b/client/src/app/isari-header/isari-header.component.ts index 0adfb34e..e030271a 100644 --- a/client/src/app/isari-header/isari-header.component.ts +++ b/client/src/app/isari-header/isari-header.component.ts @@ -50,10 +50,9 @@ export class IsariHeaderComponent implements OnInit { } // https://github.com/SciencesPo/isari/issues/445 - this.historyAccess = this.user.isariAuthorizedCenters.find(({ isariRole, organization }) => + this.historyAccess = this.user.isariAuthorizedCenters.find(({ isariRole, org }) => isariRole === 'central_admin' - || isariRole === 'central_reader' - || (isariRole === 'center_admin' && organization === this.organization.id) + || (isariRole === 'center_admin' && org === this.organization.id) ); }); }