mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 22:33:44 +02:00
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:
@@ -61,7 +61,9 @@ export default ({ subuser }: Props) => {
|
||||
}
|
||||
</Can>
|
||||
<Can action={'user.delete'}>
|
||||
{subuser.uuid !== uuid &&
|
||||
<RemoveSubuserButton subuser={subuser}/>
|
||||
}
|
||||
</Can>
|
||||
</GreyRowBox>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user