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