]> BookStack Code Mirror - bookstack/commit
Fixed failed permission checks due to non-loaded fields 3632/head
authorDan Brown <redacted>
Wed, 10 Aug 2022 07:06:48 +0000 (08:06 +0100)
committerDan Brown <redacted>
Wed, 10 Aug 2022 07:06:48 +0000 (08:06 +0100)
commit16eedc826492deba2aa7bda09cdbbc7cbad02308
tree940033bc8f660b7313e002f2e1de8ed0594eef28
parent219da9da9ba94a2f024eca3be401fd14ef03bd25
Fixed failed permission checks due to non-loaded fields

Added additional exceptions to prevent such cases in the future, so
that they are caught in dev ideally.
Added test case specifically for reported favourite scenario.
app/Auth/Permissions/PermissionApplicator.php
app/Entities/Repos/BaseRepo.php
app/Entities/Repos/BookshelfRepo.php
app/Entities/Tools/SearchRunner.php
app/Http/Controllers/FavouriteController.php
tests/FavouriteTest.php