-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Pages are incorrectly displayed inside a chapter at the book overview #2414
Comments
Thanks for reporting @cdrfun. Have marked this to be tested and patched as a priority. |
When book trees were generated, pages in chapters where ALL pages within were not supposed to be visibile, would be visible due to the code falling back on the raw relation which would not account for permissions. This has now been changed so that a custom 'visible_pages' attribute is set and used by any book tree structures, to ensure it does not fall back to the raw relation. Added an extra test to cover. For #2414
Thanks again for reporting @cdrfun, This has now been addressed in v0.30.6: https://github.com/BookStackApp/BookStack/releases/tag/v0.30.6 Some notes from my testing and fixing:
Apologies if this issue caused you, or any others, problems. |
I'm glad I was able to help, as I really love bookstack. I've tested the update and the reported behavior is correct now. Furthermore, I tested the export and the plaintext export still is shaky. This is the chapter export result from my test setup: But the same error happens when exporting the book. |
The content of pages made non-viewable to a user via permissions, within a visible parent, could be seen via the plaintext export option. Before v0.30.6 this would have applied only to scenarios where all pages within the chapter were made non-visible. In v0.30.6 this would make all pages within the chapter visible. As per #2414
Thanks so much once again for reporting that @cdrfun, Was part of the same thing but made worse with the changes in v0.30.6. Have now deployed a new release to cover this: https://github.com/BookStackApp/BookStack/releases/tag/v0.30.7 |
I did a retest and everything seems fine now. Thanks for your fast response, your way of managing Bookstack is great! |
Describe the bug
A chapter is readable for Role1 and Role2, but all pages of this chapter are only readable for Role1. When you open the chapter for Role2, no pages are displayed. But when you open the book for Role2, the pages are displayed under the chapter and the first line of content is shown.
Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
When you open the book for Role2, the chapter should be empty.
Screenshots
Role2 book view:
Role2 chapter view:
Your Configuration (please complete the following information):
The text was updated successfully, but these errors were encountered: