BookStack/tests/Api
Dan Brown b4fa82e329
Fixed related permissions query not considering drafts
Page-related items added on drafts could be visible in certain scenarios
since the applied permissions query filters would not consider
page draft visibility.
This commit alters queries on related items to apply such filtering.

Included test to cover API scenario.
Thanks to @haxatron for reporting.
2021-11-30 00:06:17 +00:00
..
ApiAuthTest.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
ApiConfigTest.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
ApiDocsTest.php Added /api => /api/docs redirect for convenience. 2021-11-14 15:20:04 +00:00
ApiListingTest.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
AttachmentsApiTest.php Fixed related permissions query not considering drafts 2021-11-30 00:06:17 +00:00
BooksApiTest.php Added role permissions for exporting content 2021-08-28 21:48:17 +01:00
ChaptersApiTest.php Added role permissions for exporting content 2021-08-28 21:48:17 +01:00
PagesApiTest.php Added role permissions for exporting content 2021-08-28 21:48:17 +01:00
SearchApiTest.php Added API search endpoint 2021-11-14 16:28:01 +00:00
ShelvesApiTest.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
TestsApi.php Added TestCase for attachments API methods 2021-10-20 00:58:56 +01:00