Airship\Cabin\Bridge\Landing\Crew::editUser PHP Method

editUser() public method

Edit a user's information
public editUser ( string $userId = '' )
$userId string
    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()]);
    }