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:
parent
1473bf9b8c
commit
ec99859590
|
@ -61,7 +61,9 @@ export default ({ subuser }: Props) => {
|
|||
}
|
||||
</Can>
|
||||
<Can action={'user.delete'}>
|
||||
{subuser.uuid !== uuid &&
|
||||
<RemoveSubuserButton subuser={subuser}/>
|
||||
}
|
||||
</Can>
|
||||
</GreyRowBox>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue