BookStack icon indicating copy to clipboard operation
BookStack copied to clipboard

Role with global book create rights cant create Books under the shelves

Open mi-wulf opened this issue 3 years ago • 2 comments

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

  1. Create a custom user role with the right to create and edit books.
  2. Give a user the custom role
  3. 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": image

Shelf view where I should be able to create the Book: image

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

mi-wulf avatar Aug 22 '23 15:08 mi-wulf

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.

ssddanbrown avatar Aug 22 '23 17:08 ssddanbrown

Hi @ssddanbrown,

thank you for the fast feedback and you explanation! The book creation works with the shelv edit right.

mi-wulf avatar Aug 23 '23 07:08 mi-wulf