Skip to content

Commit

Permalink
fix (front) remove button for central reader fix #472
Browse files Browse the repository at this point in the history
  • Loading branch information
t8g committed Oct 13, 2017
1 parent 67b8c37 commit 75f9348
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions client/src/app/isari-header/isari-header.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
);
});
}
Expand Down

0 comments on commit 75f9348

Please sign in to comment.