Reassign resource don't removes new owner from team

Affected version


Well-known member
One of users on my forum founded a very funny bug.
Suggest we have three members: A, B and C. A and B are members, C - moderator.
  1. C reassigns resource X from A to B.
  2. B adds A to resource X team.
  3. C reassigns resource X from B to A.
This causes effect when we can see same user in author and team members.

It looks like XFRM doesn't remove new resource owner from team, if he is present.