I wanted to make sure that a node of a certain type is always available for any registered user, so I went into rolespecific node's settings, and selected "registered user" as the appropriate role, and my content type as the node to create.
Nothing happened!
So, I dug around in the module, and discovered that the $is_role check does not account for when registered user is the role - only custom roles. The "registered user" role doesn't get an entry in the user roles array, because any user that is not anonymous is a member of the registered user role.
My slightly inelegant solution was to add a line right after the $is_role assignment:
if ($role==2 && $account->uid) $is_role=TRUE;
I have not created a patch, since there is almost certainly a more elegant way of doing this check - and it's a single-line change.
This did the trick.
Comments
Comment #1
Lapino commented