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.
| Comment | File | Size | Author |
|---|---|---|---|
| i18n_access_neutral.patch | 595 bytes | toemaz |
Comments
Comment #1
zroger commentedThanks, fixed in 1.0-dev.
Comment #3
toemaz commented@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