File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments