In invite.module line 661, user_roles(0, 'send invitations') return the translated roles' name, but in $account->roles, the roles were not be translated, so on line 663: in_array($role, $account->roles) will always return false if the language is not english.

it can be fixed by some changes:
661 change to foreach (user_roles(0, 'send invitations') as $rid => $role) {
663 change to if (in_array($rid, array_keys($account->roles))) {

Comments

smk-ka’s picture

Status: Active » Fixed

Thanks, this has already been fixed in the development snapshot.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.