|
@@ 201-204 (lines=4) @@
|
| 198 |
|
return $response->withStatus(404); |
| 199 |
|
} |
| 200 |
|
$entity = $entity[0]; |
| 201 |
|
if(isset($entity['participant']) && strlen($entity['participant']) > 0) |
| 202 |
|
{ |
| 203 |
|
return $response->withStatus(401); |
| 204 |
|
} |
| 205 |
|
$shift = new \VolunteerShift($shiftId, $entity); |
| 206 |
|
$entity = $this->processShift($entity, $request); |
| 207 |
|
if(isset($entity['minShifts']) && $entity['minShifts'] > 0) |
|
@@ 337-340 (lines=4) @@
|
| 334 |
|
return $response->withStatus(404); |
| 335 |
|
} |
| 336 |
|
$entity = $entity[0]; |
| 337 |
|
if(isset($entity['participant']) && strlen($entity['participant']) > 0) |
| 338 |
|
{ |
| 339 |
|
return $response->withStatus(401); |
| 340 |
|
} |
| 341 |
|
$filter = new \Data\Filter('groupID eq '.$entity['groupID'].' and enabled eq true'); |
| 342 |
|
$entities = $dataTable->read($filter); |
| 343 |
|
$count = count($entities); |
|
@@ 384-387 (lines=4) @@
|
| 381 |
|
return $response->withStatus(404); |
| 382 |
|
} |
| 383 |
|
$entity = $entity[0]; |
| 384 |
|
if(isset($entity['participant']) && strlen($entity['participant']) > 0) |
| 385 |
|
{ |
| 386 |
|
return $response->withStatus(401); |
| 387 |
|
} |
| 388 |
|
$data = $request->getParsedBody(); |
| 389 |
|
$myShift = $data['myshift']; |
| 390 |
|
$roles = array(); |