/** * Edit a user's information * * @route crew/users/edit/{id} * @param string $userId */ public function editUser(string $userId = '') { $userId = (int) $userId; $user = $this->account->getUserAccount($userId, true); $post = $this->post(new EditUserFilter()); if ($post) { if ($this->account->editUser($userId, $post)) { \Airship\redirect($this->airship_cabin_prefix . '/crew/users'); } } $this->lens('crew/user_edit', ['active_link' => 'bridge-link-admin-crew-users', 'user' => $user, 'groups' => $this->account->getGroupTree()]); }