Skip to content

Commit

Permalink
Add a restricted check and flip the conditional result
Browse files Browse the repository at this point in the history
  • Loading branch information
mjac0bs committed Feb 27, 2024
1 parent e255d5b commit bc4c30a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/manager/src/features/Users/UserRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ export const UserRow = ({ onDelete, user }: Props) => {
{showChildAccountAccessCol && (
<Hidden lgDown>
<TableCell>
{grants?.global?.child_account_access ? 'Enabled' : 'Disabled'}
{user.restricted && !grants?.global?.child_account_access
? 'Disabled'
: 'Enabled'}
</TableCell>
</Hidden>
)}
Expand Down

0 comments on commit bc4c30a

Please sign in to comment.