Skip to content

Commit 48bee1c

Browse files
committed
removed setting the env variable in update instance settings
1 parent 537bcd6 commit 48bee1c

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

controllers/admin_controller.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ import (
2121
"fmt"
2222
"log/slog"
2323
"net/http"
24-
"os"
25-
"strconv"
2624
"strings"
2725
"time"
2826

@@ -266,15 +264,6 @@ func (controller AdminController) UpdateInstanceSettings(ctx shared.Context) err
266264
if err != nil {
267265
return echo.NewHTTPError(500, "could not update instance settings config").WithInternal(err)
268266
}
269-
270-
err = os.Setenv("SINGLE_ORGANIZATION_MODE", strconv.FormatBool(*updateRequest.DisableOrgCreation))
271-
if err != nil {
272-
err = controller.configService.SetJSONConfig(context.Background(), "instanceSettings", instanceSettings)
273-
if err != nil {
274-
return echo.NewHTTPError(500, "could not revert instance settings config, possible inconsistent state!").WithInternal(err)
275-
}
276-
return echo.NewHTTPError(500, "could not update env variable, reverted instance settings config").WithInternal(err)
277-
}
278267
}
279268
return ctx.NoContent(200)
280269
}

0 commit comments

Comments
 (0)