Greetings,
We are using femail to send/receive forum messages by email and forum_access to limit access to forums based on Role assignment.
Today, we discovered that new topics created either by web page or sending an email, are not properly emailed out to people by femail.
When a new node is created, the femail nodeapi function is called before the forum_access module has a chance to insert a line into the node_access table granting view access for the new node. This results in most people *not* getting the email sent out by femail. The only ones who do have access are in roles with 'administer node' permissions.
This all happens because node_save calls node_invoke_nodeapi before calling node_access_acquire_grants which loads the new grant into the node_access table.
I've "fixed" the problem, for now, by moving the node_access_acquire_grants call above node_invoke_nodeapi in
node_save, but that is probably a bad idea.
I'm dropping this here and on the forum_access module.
Would greatly appreciate any insight you have.
--[Lance]
Comments
Comment #1
sdrycroft commentedI haven't used the forum_access module, so will need to investigate this. Have you tried setting femail's "weight" in the system table to a value greater than that of the forum_access module?
Comment #2
sdrycroft commentedI have just realised I fixed this in our local repository, but didn't commit it to drupal.org. I'll make a release ASAP.
Comment #3
sdrycroft commentedThis should be fixed in 6.x-1.9 and 7.x-1.9.