]> BookStack Code Mirror - bookstack/commit
Users API: Fixed sending invite when using form requests
authorDan Brown <redacted>
Wed, 13 Dec 2023 15:11:42 +0000 (15:11 +0000)
committerDan Brown <redacted>
Wed, 13 Dec 2023 15:13:54 +0000 (15:13 +0000)
commit56d07f1909c61d40a946eb636be864ede4b00ab6
tree4b4db41998dfb8d028096ce1f328cb32a80535c9
parent4896c4047fccc9e2bdeb061590e25491e5eaf415
Users API: Fixed sending invite when using form requests

- Cast send_invite value in cases where it might not have been a boolean,
  which occurs on non-JSON requests.
- Added test to cover.
- Updated API docs to mention and shown boolean usage.
app/Users/Controllers/UserApiController.php
resources/views/api-docs/parts/getting-started.blade.php
tests/Api/UsersApiTest.php
Morty Proxy This is a proxified and sanitized view of the page, visit original site.