Role with global book create rights cant create Books under the shelves
Describe the Bug
I have a custom user role with rights to create, edit and delete books, but if I login with a user with that role I cant create books under shelves.
Steps to Reproduce
- Create a custom user role with the right to create and edit books.
- Give a user the custom role
- Login as the user as the user and try to create a book under a shelf
Expected Behaviour
That I can create a book under a shelve with my custom role.
Screenshots or Additional Context
Role that has Books allow "everything":
Shelf view where I should be able to create the Book:
Browser Details
Google Chrome Version 116.0.5845.96
Exact BookStack Version
v23.06.2
PHP Version
No response
Hosting Environment
Ubuntu 22.04.2 LTS
Hi @mi-wulf, For bookshelves, we consider the relation to books part of the shelf itself. Therefore creating books directly within a shelf also requires the ability to edit the shelf in use.
Hi @ssddanbrown,
thank you for the fast feedback and you explanation! The book creation works with the shelv edit right.