-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
Describe the bug
Guest user only accepts custom permissions from the role Public. Any other role permission is ignored. The default permissions however work if given from another role than Public.
Steps To Reproduce
- Go to roles and create another role "BookA", add this role to the user Guest
- Create a book "BookA" and configure custom permissions for role BookA to view and none for role Public
- Open a private tab with the book
- See no book
Expected behavior
Guest user should inherit custom permissions from other roles than Public.
Your Configuration (please complete the following information):
- Exact BookStack Version: BookStack v0.25.0
- PHP Version: 7.2.10
- Hosting Method: Apache2
Additional context
I use custom permissions for all of my books. For every book I use a different role with the same name as the book. Only this role can create or edit. If I want users to edit a book, I just add them to the role and I'm done with it. This way I can also easily overview any given edit permissions of a user.
This works pretty flawless except for the Guest user, which I want to give edit access to some books but without loosing track where the role Public has permission to edit. This can get icky with an expanding library.