Reviewed & tested by the community
Project:
Advanced Book Blocks
Version:
6.x-2.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Feb 2010 at 07:39 UTC
Updated:
19 Dec 2011 at 16:39 UTC
Jump to comment: Most recent file
Comments
Comment #1
kbsymanz commentedI was experiencing the same problem. I was using the book_access module, which uses the node access system. ABB was not respecting the permissions as specified in node access. I solved the problem for myself with the following change to the advancedbookblocks.module. Here is the diff against alpha1.
This revision prevented books that book_access did not grant access to from showing up in ABB. I would imagine that this change would work for other modules that utilize node access, but I have not tested the same myself. By the way, the same revision worked against 6.x-1.9 for me too.
Kurt
Comment #2
idcm commentedKurt,
Would you mind providing this patch in the +/- format? I am not sure I follow the 462a463,466 notation - especially now that I might be changing the line numbers with the patch you suggest in http://drupal.org/node/729108
thank you
Comment #3
mpotter commentedI don't have a proper patch tool (on Windows here), but I was playing with this issue myself and can provide a bit more code context for the change.
I made the change to the end of the books_get_top_level function. The alpha1 code is this:
and the new code with the change suggested above is this:
Adding this change seemed to fix the problem I was having with the Book Access module.
Comment #4
idcm commentedthanks, mpotter. very clear.
Comment #5
kbsymanz commentedI noticed that the patch in #3 above is no longer present, unless I am missing something. After installing 6.x-2.5, ABB was seriously misbehaving (showing books that should not have been seen, etc.) until I put the patch back in. Here is the patch again against 6.x-2..5 if you want it.
Comment #6
jzornig commentedThe patch in #5 fixed an issue i was seeing where I was getting a phantom replica of a book in my block, ie. the book was appearing twice, but the second copy had a link to a different book that the user had no access to.
Comment #7
jvieille commentedthe patch #5 solved this
http://drupal.org/node/1192594
Please commit!
Thanks!
Comment #8
jvieille commentedChanged the status
1,5 year old issue solved 1 year ago and not committed yet :(
Comment #9
jvieille commentedbump