Mapper can be null if provided id is a board id

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2018-08-15 20:21:49 +02:00
parent 81d333243d
commit 0c9b1f5338

View File

@@ -165,10 +165,6 @@ class BoardService {
*/
public function isArchived($mapper, $id) {
if ($mapper === false || $mapper === null) {
throw new BadRequestException('mapper must be provided');
}
if (is_numeric($id) === false) {
throw new BadRequestException('id must be a number');
}