When installed tac_lit seems to make nodes already in existance and not part of any taxonomy inaccessible to all but admin users until they are re-saved. How can this be avoided?

Comments

keve’s picture

Component: Documentation » Code

Hi!
Do you think, this is connected?
As the developer of TAC, I have a bug w/ TAC i cannot figure out:
http://drupal.org/node/69295

escoles’s picture

I can corroborate this behavior. I was having a problem after enabling tac_lite, where all of the nodes suddenly went missing. After seeing this bug, I edited/saved a node, and voila, it's visible again. Fortunately this happened when I only had about twenty nodes in the system, but I can see that it would be a biggie if I were implementing tac_lite on an existing site.

harry slaughter’s picture

most node_access modules have an enable and disable feature. in order for a module to manage access control, it has to manage access for *all* nodes. :(

after enabling tac_lite, you'll need to create node_access entries for old nodes:

        INSERT INTO node_access (nid, gid, realm, grant_view, grant_update, grant_delete)
        SELECT nid, 0, 'tac_lite', 1, 0, 0 FROM node
        ;

you may also have to delete the 'grant all to all' entry:

        DELETE FROM node_access WHERE nid = 0 AND realm = 'all'
Dave Cohen’s picture

Status: Active » Closed (won't fix)

There's no easy way in drupal 4.7 to rebuild the permissions at once, you have to save each node. But Drupal 5 introduces a fix: go to ?q=admin/content/node-settings and press "Rebuild permissions"