Skip to content

Commit

Permalink
fixes #472
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgirard committed Oct 18, 2017
1 parent 7964e77 commit ecdd800
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/app/isari-header/isari-header.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ export class IsariHeaderComponent implements OnInit {
}

// https://github.com/SciencesPo/isari/issues/445
this.historyAccess = this.user.isariAuthorizedCenters.find(({ isariRole, org }) =>
this.historyAccess = this.user.isariAuthorizedCenters.find(({ isariRole, organization }) =>
isariRole === 'central_admin'
|| (isariRole === 'center_admin' && org === this.organization.id)
|| (isariRole === 'center_admin' && organization === this.organization.id)
);
});
}
Expand Down

0 comments on commit ecdd800

Please sign in to comment.