[PR #1862] [CLOSED] Shared drafts #5908

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

📋 Pull Request Information

Original PR: https://github.com/BookStackApp/BookStack/pull/1862
Author: @Hazzard17h
Created: 1/28/2020
Status: Closed

Base: masterHead: master


📝 Commits (3)

  • 3c2321c Add shared drafts, can be enabled from app settings
  • c1a40c4 Add page-editdraft-all permission
  • 20898ab Fix draft pages visibility inside chapters

📊 Changes

19 files changed (+236 additions, -82 deletions)

View changed files

📝 app/Auth/Permissions/PermissionService.php (+28 -13)
📝 app/Entities/Chapter.php (+3 -3)
📝 app/Entities/Managers/PageEditActivity.php (+16 -2)
📝 app/Entities/Repos/PageRepo.php (+27 -2)
📝 app/Http/Controllers/ChapterController.php (+1 -1)
📝 app/Http/Controllers/Controller.php (+16 -0)
📝 app/Http/Controllers/PageController.php (+12 -11)
database/migrations/2020_01_29_171400_add_edit_draft_permission.php (+65 -0)
📝 resources/lang/en/common.php (+2 -0)
📝 resources/lang/en/entities.php (+5 -0)
📝 resources/lang/en/settings.php (+3 -0)
📝 resources/views/chapters/child-menu.blade.php (+2 -2)
📝 resources/views/chapters/list-item.blade.php (+2 -2)
📝 resources/views/form/entity-permissions.blade.php (+2 -1)
📝 resources/views/pages/form.blade.php (+18 -14)
📝 resources/views/pages/show.blade.php (+1 -1)
📝 resources/views/partials/book-tree.blade.php (+1 -1)
📝 resources/views/settings/index.blade.php (+30 -29)
📝 resources/views/settings/roles/form.blade.php (+2 -0)

📄 Description

Added settings flag to enable shared drafts across all users with edit permission on the page.
Also added editdraft permission, that allow users to edit pages and only save draft of them (if they not have also update permission).


🔄 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/1862 **Author:** [@Hazzard17h](https://github.com/Hazzard17h) **Created:** 1/28/2020 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (3) - [`3c2321c`](https://github.com/BookStackApp/BookStack/commit/3c2321c32f3eb6f80e55f7c21bf37e22ec9b7b51) Add shared drafts, can be enabled from app settings - [`c1a40c4`](https://github.com/BookStackApp/BookStack/commit/c1a40c4e1258adfc8323ee2e2d60b52fb921aa4a) Add page-editdraft-all permission - [`20898ab`](https://github.com/BookStackApp/BookStack/commit/20898ab31628a2e969054a9d4f4027ba14755cfc) Fix draft pages visibility inside chapters ### 📊 Changes **19 files changed** (+236 additions, -82 deletions) <details> <summary>View changed files</summary> 📝 `app/Auth/Permissions/PermissionService.php` (+28 -13) 📝 `app/Entities/Chapter.php` (+3 -3) 📝 `app/Entities/Managers/PageEditActivity.php` (+16 -2) 📝 `app/Entities/Repos/PageRepo.php` (+27 -2) 📝 `app/Http/Controllers/ChapterController.php` (+1 -1) 📝 `app/Http/Controllers/Controller.php` (+16 -0) 📝 `app/Http/Controllers/PageController.php` (+12 -11) ➕ `database/migrations/2020_01_29_171400_add_edit_draft_permission.php` (+65 -0) 📝 `resources/lang/en/common.php` (+2 -0) 📝 `resources/lang/en/entities.php` (+5 -0) 📝 `resources/lang/en/settings.php` (+3 -0) 📝 `resources/views/chapters/child-menu.blade.php` (+2 -2) 📝 `resources/views/chapters/list-item.blade.php` (+2 -2) 📝 `resources/views/form/entity-permissions.blade.php` (+2 -1) 📝 `resources/views/pages/form.blade.php` (+18 -14) 📝 `resources/views/pages/show.blade.php` (+1 -1) 📝 `resources/views/partials/book-tree.blade.php` (+1 -1) 📝 `resources/views/settings/index.blade.php` (+30 -29) 📝 `resources/views/settings/roles/form.blade.php` (+2 -0) </details> ### 📄 Description Added settings flag to enable shared drafts across all users with edit permission on the page. Also added _editdraft_ permission, that allow users to edit pages and only save draft of them (if they not have also _update_ permission). --- <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:20:06 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#5908