@@ -54,6 +54,9 @@ discard block |
||
| 54 | 54 | return $response->withJson($users); |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | + /** |
|
| 58 | + * @param boolean $message |
|
| 59 | + */ |
|
| 57 | 60 | protected function validateCanCreateUser($proposedUser, $auth, &$message) |
| 58 | 61 | { |
| 59 | 62 | $user = $auth->getUsersByFilter(new \Data\Filter('mail eq '.$proposedUser['mail'])); |
@@ -224,6 +227,9 @@ discard block |
||
| 224 | 227 | } |
| 225 | 228 | } |
| 226 | 229 | |
| 230 | + /** |
|
| 231 | + * @param Exception $e |
|
| 232 | + */ |
|
| 227 | 233 | protected function exceptionCodeToHttpCode($e) |
| 228 | 234 | { |
| 229 | 235 | if($e->getCode() === 3) |
@@ -370,6 +376,10 @@ discard block |
||
| 370 | 376 | return $response->withJson(array('success'=>true)); |
| 371 | 377 | } |
| 372 | 378 | |
| 379 | + /** |
|
| 380 | + * @param Data\Filter $filter |
|
| 381 | + * @param boolean $pending |
|
| 382 | + */ |
|
| 373 | 383 | protected function getAllUsersByFilter($filter, &$pending) |
| 374 | 384 | { |
| 375 | 385 | $auth = AuthProvider::getInstance(); |