Don't show delete button if its own user

Don't show the delete button if a sub-user is looking at sub-users, as they cannot delete themselves.
This commit is contained in:
Charles Morgan 2020-11-28 14:48:35 -05:00
parent 1473bf9b8c
commit ec99859590
1 changed files with 2 additions and 0 deletions

View File

@ -61,7 +61,9 @@ export default ({ subuser }: Props) => {
}
</Can>
<Can action={'user.delete'}>
{subuser.uuid !== uuid &&
<RemoveSubuserButton subuser={subuser}/>
}
</Can>
</GreyRowBox>
);