Skip to content

Commit

Permalink
fix: update access util
Browse files Browse the repository at this point in the history
  • Loading branch information
iacoshoria committed Oct 29, 2020
1 parent 5ecaab4 commit e34217b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/earth-map/src/components/header/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import Link from 'redux-first-router-link';
import OrganizationService from 'services/OrganizationService';
import { APP_LOGO } from 'theme';

import { AppContextSwitcher, checkRole } from '@marapp/earth-shared';
import { AppContextSwitcher, isAdminAuthz } from '@marapp/earth-shared';

const { Option } = AppContextSwitcher;

Expand Down Expand Up @@ -189,7 +189,7 @@ const Header = (props: IProps) => {
{orgCheckBoxes}
{Object.keys(roles).map(
(g) =>
checkRole(roles[g]) && (
isAdminAuthz(roles[g]) && (
<Option value={g} key={g}>
{g} - ADMIN
</Option>
Expand Down

0 comments on commit e34217b

Please sign in to comment.