While working on T321799, I noticed that action=growthsetmentor API ignores blocks, ie. blocked users can make use of the API.
In the case of action=growthsetmentor, this means:
- Blocked mentors can harass users by claiming them (this triggers notifications)
- Blocked mentees can change their own mentor (this does not trigger any notification, so the only issue is the entries in Special:Log).