Skip to content

Commit ec99859

Browse files
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.
1 parent 1473bf9 commit ec99859

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

resources/scripts/components/server/users/UserRow.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ export default ({ subuser }: Props) => {
6161
}
6262
</Can>
6363
<Can action={'user.delete'}>
64+
{subuser.uuid !== uuid &&
6465
<RemoveSubuserButton subuser={subuser}/>
66+
}
6567
</Can>
6668
</GreyRowBox>
6769
);

0 commit comments

Comments
 (0)