Hi everyone, I'm having a very bizarre problem with the Book Access module.

I've used it without problems for months. Last week I updated the FCKEditor module for the site and ran Drupal's update.php script. After doing this regular users were denied access to all books. I disabled and reenabled the Book Access module and user's could once more view all pages, but Update privileges were only in effect on newly created pages! (Note that ALL users can view ALL pages on the site, so it may not be just update privileges affected).

To clarify: If I log in as a user with Update privileges on a given book and browse the pages of the book, I do not see the Edit button. If I browse directly to the node/###/edit page I receive an Access denied error. I do see Add child page on the pages of the book and can successfully add new pages. On these new pages, I can see the Edit button, access the edit page, and save changes.

I've looked through the book_access.module, book_access table and node_access table and everything in these look fine. eg. for a user who has been granted update privileges on a book, I can see a 1 in the grant_update column for all pages of the book, new and old.

Does anyone have any ideas where this problem might be coming from? I have no other modules that deal with access control installed on the site. I'm not too familiar with drupal's code and am not sure where to start poking next.

Comments

punchmonkey’s picture

Status: Active » Closed (fixed)

I apologize, this turned out to be an error on my part with a misunderstanding of how the security for Input Formats worked.

When upgrading the fckeditor module I also created a new input format for new users to use. I disabled their rights to the old Input Format. I had expected this would cause all users to use the new input format when they edited an old post... instead they just lost editing access to all old posts.

I went into the database and switched the input formats of all existing posts and everything is working as usual again.