I will let the patch speak for itself first. The return statement in i18n_access_node_access()

  return (boolean)$perms[$node->language];

has to be changed into

  return (boolean)$perms[($node->language ? $node->language : I18N_ACCESS_LANGUAGE_NEUTRAL)];

In case a node is language neutral, i.e. $node->language is an empty string, the NEUTRAL value should be used.

CommentFileSizeAuthor
i18n_access_neutral.patch595 bytestoemaz

Comments

zroger’s picture

Status: Needs review » Fixed

Thanks, fixed in 1.0-dev.

Status: Fixed » Closed (fixed)

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

toemaz’s picture

@Roger

Can you make the dev release available or issue a 1.0 release for this module, which includes a fix for this issue? People are posting duplicate issues #658348: access neutral language not working