[PR #5205] [CLOSED] Add the option for new books to inherit permissions when created #6455

Closed
opened 2026-02-05 10:32:42 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/BookStackApp/BookStack/pull/5205
Author: @anbcodes
Created: 9/17/2024
Status: Closed

Base: developmentHead: new-books-inherit-permissions


📝 Commits (1)

  • 5101d15 Added the option for new books to inherit permissions when created

📊 Changes

9 files changed (+97 additions, -5 deletions)

View changed files

📝 app/Entities/Controllers/BookController.php (+13 -0)
📝 app/Entities/Controllers/BookshelfController.php (+15 -4)
📝 app/Entities/Models/Bookshelf.php (+1 -1)
database/migrations/2024_09_12_204800_add_new_books_inherit_perms_to_bookshelves.php (+28 -0)
📝 lang/en/entities.php (+1 -0)
📝 lang/en/settings.php (+3 -0)
📝 resources/sass/_forms.scss (+4 -0)
📝 resources/views/settings/features.blade.php (+14 -0)
📝 resources/views/shelves/parts/form.blade.php (+18 -0)

📄 Description

Adds an option to bookshelves to copy permissions to books created under them. This fixes the issue where someone has permission to create a book but cannot view the book they created. This fixes #1596 by implementing the suggestion in this comment.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/BookStackApp/BookStack/pull/5205 **Author:** [@anbcodes](https://github.com/anbcodes) **Created:** 9/17/2024 **Status:** ❌ Closed **Base:** `development` ← **Head:** `new-books-inherit-permissions` --- ### 📝 Commits (1) - [`5101d15`](https://github.com/BookStackApp/BookStack/commit/5101d1595b3aff0c4143102cb179fd6585f6a567) Added the option for new books to inherit permissions when created ### 📊 Changes **9 files changed** (+97 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `app/Entities/Controllers/BookController.php` (+13 -0) 📝 `app/Entities/Controllers/BookshelfController.php` (+15 -4) 📝 `app/Entities/Models/Bookshelf.php` (+1 -1) ➕ `database/migrations/2024_09_12_204800_add_new_books_inherit_perms_to_bookshelves.php` (+28 -0) 📝 `lang/en/entities.php` (+1 -0) 📝 `lang/en/settings.php` (+3 -0) 📝 `resources/sass/_forms.scss` (+4 -0) 📝 `resources/views/settings/features.blade.php` (+14 -0) 📝 `resources/views/shelves/parts/form.blade.php` (+18 -0) </details> ### 📄 Description Adds an option to bookshelves to copy permissions to books created under them. This fixes the issue where someone has permission to create a book but cannot view the book they created. This fixes #1596 by implementing the suggestion in [this comment](https://github.com/BookStackApp/BookStack/issues/1091#issuecomment-2250465959). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 10:32:42 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#6455