first attempt at BoardApiControllerTest->testGetNoPermission()

Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca>
This commit is contained in:
Ryan Fletcher
2018-07-15 12:17:55 -04:00
committed by Julius Härtl
parent dcfb9f3903
commit 54f110f7c6
2 changed files with 34 additions and 2 deletions

View File

@@ -75,7 +75,7 @@ class BoardApiController extends ApiController {
*
* Return the board specified by $this->request->getParam('boardId').
*/
public function get() {
public function get() {
if (is_numeric($this->request->getParam('boardId')) === false) {
return new DataResponse('board id must be a number', HTTP::STATUS_BAD_REQUEST);