]> BookStack Code Mirror - bookstack/commit
Added additional permission checks and tests for book sorts
authorDan Brown <redacted>
Wed, 5 Jan 2022 15:42:59 +0000 (15:42 +0000)
committerDan Brown <redacted>
Wed, 5 Jan 2022 15:42:59 +0000 (15:42 +0000)
commitd3ca23b195cf2484ac5eaeea0b0e8cb4ca0aad48
tree17d31fe78ad10c96cb56453a530bf0daf2ea124e
parent553954ad18bd684b7d83d1ee6f7d0bdbf7651acf
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.
app/Entities/Repos/ChapterRepo.php
app/Entities/Tools/BookContents.php
app/Http/Controllers/ChapterController.php
tests/Entity/SortTest.php