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
1 changed files with 2 additions and 0 deletions
|
@ -61,7 +61,9 @@ export default ({ subuser }: Props) => {
|
||||||
}
|
}
|
||||||
</Can>
|
</Can>
|
||||||
<Can action={'user.delete'}>
|
<Can action={'user.delete'}>
|
||||||
|
{subuser.uuid !== uuid &&
|
||||||
<RemoveSubuserButton subuser={subuser}/>
|
<RemoveSubuserButton subuser={subuser}/>
|
||||||
|
}
|
||||||
</Can>
|
</Can>
|
||||||
</GreyRowBox>
|
</GreyRowBox>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue