Translations:Manual:Hooks/UserGetRights/21/en

The $1 hook, called immediately after $2, can be used for that.