diff --git a/src/app/user/controllers/UserController.php b/src/app/user/controllers/UserController.php index c30579c11cc0ea7ed21100e132169d180e869fd6..78e14895daab49966d94a21081826d8e59e9598a 100755 --- a/src/app/user/controllers/UserController.php +++ b/src/app/user/controllers/UserController.php @@ -686,6 +686,9 @@ class UserController if (!empty($user['substitute'])) { $user['substituteUser'] = UserModel::getLabelledUserById(['id' => $user['substitute']]); } + + $substitutes = UserModel::get(['select' => ['id'], 'where' => ['substitute = ? '], 'data' => [$GLOBALS['id']]]); + $user['substitutes'] = array_column($substitutes, 'id'); } return $user;