Visibility of Shelves menu item with custom permissions #974

Closed
opened 2026-02-04 23:14:08 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @Bolthier on GitHub (Dec 29, 2018).

Originally assigned to: @ssddanbrown on GitHub.

Describe the bug
The visibility of the Shelves menu item is dependent only on global permission of a user role. With custom permissions only set to View for the same user role the menu item doesn't show up.

Steps To Reproduce

  1. Go to user role Public and deactivate all default permissions for Shelves.
  2. Activate the View custom permission for a Shelve for user role Public.
    2
  3. Log out and see no Shelves menu item.
    1

Expected behavior
A tab for the Shelves if you have custom permissions for View on specific shelves even without any default permissions.

Or an option in Settings or Users where you can activate or deactivate the button.

Your Configuration (please complete the following information):

  • Exact BookStack Version (Found in settings): BookStack v0.24.2
  • PHP Version: 7.2
  • Hosting Method (Nginx/Apache/Docker): Apache2

Additional context
See also: https://github.com/BookStackApp/BookStack/issues/1171#issuecomment-446378261

Originally created by @Bolthier on GitHub (Dec 29, 2018). Originally assigned to: @ssddanbrown on GitHub. **Describe the bug** The visibility of the Shelves menu item is dependent only on global permission of a user role. With custom permissions only set to View for the same user role the menu item doesn't show up. **Steps To Reproduce** 1. Go to user role Public and deactivate all default permissions for Shelves. 2. Activate the View custom permission for a Shelve for user role Public. ![2](https://user-images.githubusercontent.com/42382626/50538815-16518b00-0b76-11e9-9538-63899d267903.PNG) 3. Log out and see no Shelves menu item. ![1](https://user-images.githubusercontent.com/42382626/50538820-4ac54700-0b76-11e9-9635-ad041e67bf72.PNG) **Expected behavior** A tab for the Shelves if you have custom permissions for View on specific shelves even without any default permissions. Or an option in Settings or Users where you can activate or deactivate the button. **Your Configuration (please complete the following information):** - Exact BookStack Version (Found in settings): BookStack v0.24.2 - PHP Version: 7.2 - Hosting Method (Nginx/Apache/Docker): Apache2 **Additional context** See also: https://github.com/BookStackApp/BookStack/issues/1171#issuecomment-446378261
OVERLORD added the 🛠️ Enhancement🏭 Back-End labels 2026-02-04 23:14:08 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Jan 1, 2019):

@Bolthier Good find, Thanks for reporting.

Has very similar functionality requirements as #1199.

@ssddanbrown commented on GitHub (Jan 1, 2019): @Bolthier Good find, Thanks for reporting. Has very similar functionality requirements as #1199.
Author
Owner

@ssddanbrown commented on GitHub (Mar 10, 2019):

Patch applied to master, Will be in the next patch release.

@ssddanbrown commented on GitHub (Mar 10, 2019): Patch applied to master, Will be in the next patch release.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#974