mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-07 23:03:00 +03:00
Added additional permission checks and tests for book sorts
- Aligned permissions control with move operations to check delete/create permissions against old/new locations. - Added tests to cover additional permissions scenarios.
This commit is contained in:
@@ -94,6 +94,8 @@ class ChapterRepo
|
||||
throw new MoveOperationException('Book to move chapter into not found');
|
||||
}
|
||||
|
||||
// TODO - Check create permissions for new parent?
|
||||
|
||||
$chapter->changeBook($parent->id);
|
||||
$chapter->rebuildPermissions();
|
||||
Activity::add(ActivityType::CHAPTER_MOVE, $chapter);
|
||||
|
Reference in New Issue
Block a user