public function actionDisconnect($id)
{
/** @var UserAccount $account */
$account = UserAccount::findOne(['id' => $id]);
if ($account === null) {
throw new NotFoundHttpException();
}
if ($account->user_id != \Yii::$app->user->id) {
throw new ForbiddenHttpException();
}
$account->delete();
return $this->redirect(['networks']);
}