See #24026 (comment)
That change is wrong:
- Before
GetUserByName can be used to get a org owner.
- After: it's expected that only
Individual can be found.
- But the new logic is also wrong, Individual is 0 then it takes no effect.
- So the bug of bug makes the existing code still can use GetUserByName to find an org
- But all other types can also be found by GetUserByName
Also, GetUserOrOrgByName is not right, no type check.
And more related bugs:
See #24026 (comment)
That change is wrong:
GetUserByNamecan be used to get a org owner.Individualcan be found.Also, GetUserOrOrgByName is not right, no type check.
And more related bugs: