I'll apply a patch to make the module use rids instead of role names on role matches. If we use role names, anonymous & authenticated roles will not work if translated.

See: http://drupal.org/node/376734

Comments

thehideki’s picture

Patch here

rudiedirkx’s picture

You could write

if (in_array($rid, array_keys($account->roles))) {

like

if (isset($account->roles[$rid])) {
johnennew’s picture

Status: Needs review » Closed (won't fix)

Closing old issue. I don't believe this is an issue in the supported 4.x branches.